Riyad as-SalihinChapter 8Hadith 465
Full Sharh — Riyad as-Salihin 465
وعن أبي قتادة رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم: " إذا دخل أحدكم المسجد فلا يجلس حتى يصلي ركعتين". ((متفق عليه)).
English Translation
Abu Qatadah (May Allah be pleased with him)reported:: The Messenger of Allah (ﷺ) said, "When anyone of you enters the mosque, he should perform two Rak'ah (of voluntary prayer) before sitting.".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of Virtues
Hadith Number
465