Sahih Muslim 801: Mosques and Places of Prayer
It is narrated from Ibrahim bin Yazid at-Taimi that he said: I used to recite the Qur’an to my father on the platform outside the mosque. Whenever I recited (a verse of) prostration (Sajdah), he would prostrate. I asked him: O my father! Do you prostrate on the road? He said: I heard Hazrat Abu Dharr (ra) say: I asked the Messenger of Allah (saw) about the first mosque that was built on the earth, and he (saw) said: “The Sacred Mosque (al-Masjid al-Haram).” I submitted: Then which? He (saw) said: “The Aqsa Mosque (al-Masjid al-Aqsa).” I asked: How much (time) was there between the two? He (saw) said: “Forty years. Then the whole earth is a mosque for you. So wherever the time of Prayer (Salat) comes upon you, offer the Prayer.”
AI-translated by Islam-Today