Abu Qatada reported,

The Messenger of Allah ﷺ said, "When one of you enters the mosque, let him pray two rakahs before sitting down."

Azami 3033

Sahih

عن أبي قتادة الأنصاري

أن رسول الله ﷺ قال: إذا دخل أحدكم المسجد، فليركع ركعتين قبل أن يجلس.

الأعظمي 3033صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Greeting the masjid
Numbering
Jami al-Kamil 3033 (2nd edition)
Azami 3033