Abu Qatadah (RA) (a Companion of the Prophet) reported Allah's Messenger (ﷺ) as saying: When any one of you enters the mosque, he should observe two rak'ahs (of Nafl prayer) before sitting.
Hadith ReferenceSahih Muslim / The Book of Prayer - Travellers / Hadith: 714