Sahih al-Bukhari, Book 8, Hadith 93 (Bukhari 437)

Narrated Abu Qatada Al-Aslami:

Allah's Messenger (ﷺ) said, "If anyone of you enters a mosque, he should pray two rak`at before sitting."