- ﵁ - - ﷺ:
On the authority of Abū Qatādah (may Allah be pleased with him), who said: The Messenger of Allah ﷺ said: "When one of you enters the mosque, let him not sit down until he has prayed two rakʿahs." Agreed upon.
٢٠٨ - باب الحث على صلاة تحية المسجد بركعتين وكراهة الجلوس قبل أن يصلي ركعتين في أي وقت دخل وسواء صلى ركعتين بنية التحية أو صلاة فريضة أو سنة راتبة أو غيرها
On the authority of Abū Qatādah (may Allah be pleased with him), who said: The Messenger of Allah ﷺ said: "When one of you enters the mosque, let him not sit down until he has prayed two rakʿahs." Agreed upon.
And on the authority of Jābir (may Allah be pleased with him), who said: I came to the Prophet ﷺ while he was in the mosque, and he said: "Pray two rakʿahs." Agreed upon.