SpongeBob SquarePants does not feature a horse. The show's prominent animal character is Sandy Cheeks, a squirrel who lives in an underwater treedome and is SpongeBob's close friend and karate partner.
If you're thinking of a hoofed character, you might be confusing shows — perhaps My Little Pony or BoJack Horseman? Bikini Bottom's fauna is decidedly marine (with one notable land-mammal exception).