(37) باب الأَمْرِ بِالصَّلاَةِ قَبْلَ الْجُلُوسِ فِيهِ
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." (ID)
Reference (ID): Sunan an-Nasa'i 730 (ID)
In-book reference (ID): Book 8, Hadith 43 (ID)
English translation (ID): Vol. 1, Book 8, Hadith 731 (ID)