صحيح مسلم
From Sahih Muslim (Hadith 1134):
Sahl b. Sa'd al-Si'idi reported:Between the place of worship where the Messenger of Allah (ﷺ) prayed and the wall, there was a gap through which a goat could pass
Reference: Muslim 1134