´It was narrated from Abu Qatadah that the Messenger of Allah (ﷺ) said:` "When any one of you enters the Masjid, let him pray two Rak'ahs before he sits down."
Hadith ReferenceSunan an-Nasa'i / The Book of the Masjids / Hadith: 731
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:متفق عليه