Solomon had 4,000 stalls for his chariot horses and 12,000 horses.
(5-6) And Solomon had forty thousand stalls of horses for his chariots, and twelve thousand horsemen.