Sayyiduna Abu Qatadah Salmi رضي الله عنه narrated that the Messenger of Allah صلى الله عليه وسلم said: When any person enters the mosque, he should perform two rak‘ahs of prayer before sitting down.
Hadith Referenceاللؤلؤ والمرجان / كتاب صلاة المسافرين وقصرها / 414
Hadith Gradingمحدثین:«صحیح»
Hadith Takhrij«صحیح، أخرجه البخاري في: 8 كتاب الصلاة: 60 باب إذا دخل المجلس فليركع ركعتين»