I heard from Anas a narration like this from the Messenger of Allah (ﷺ).

Sahih Muslim Book 5 Hadith 15

Sahih Muslim #524 c

The Book of Mosques and Places of Prayer 5:15

Abu al-Tiyyah reported:

I heard from Anas a narration like this from the Messenger of Allah (ﷺ).

Chapter: The construction of the Masjid of the Prophet (saws)

Grade: Sahih