(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."
Reference: Sunan an-Nasa'i 730
In-book reference: Book 8, Hadith 43
English translation: Vol. 1, Book 8, Hadith 731