Narrated Abu Qatada bin Rabi Al-Ansari:The Prophet (ﷺ) said, "If anyone of you enters a Mosque, he should not sit until he has offered a two-rak`at prayer
Hadith No. 1167
Sahih al Bukhari