From Sahih Bukhari (Hadith 1167): 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