From Sahih Muslim (Hadith 4844):
This tradition has been handed down through several other chains of transmitters. One of the chaines has the addition of the following words from Abdullah b. 'Umar:" I came first in the race and my horse jumped into the mosque with me
Reference: Muslim 4844