We used to head out to the market during the time of the Messenger of Allah ﷺ, passing by the mosque and praying inside it.
أخبرنا محمد بن عبد الله بن عبد الحكم بن أعين قال حدثنا شعيب قال حدثنا الليث قال حدثنا خالد عن ابن أبي هلال قال أخبرني مروان بن عثمان أن عبيد بن حنين أخبره
كنا نغدو إلى السوق على عهد رسول الله ﷺ فنمر على المسجد فنصلي فيه
No references are available.
Bukhari narrated it, in the Book of Prayer, the chapter on making a disturbance in the masjid, hadith no. 445, from the hadith of Malik with this chain, and it is in the Muwatta (Yahya), 1/160, and in Kubra, hadith no. 812. Muslim also narrated it, hadith no. 273/661, through another route from Abu Hurairah with this chain.