The Messenger of Allah ﷺ said, "When one of you enters the mosque, let him pray two rakahs before sitting down."Ati once narrated it saying, from Uthman bin Abu Sulayman bin Ajlan, from Amir bin Abdullah bin Zubayr, and he mentioned the hadith.
حدثنا سفيان عن عثمان بن أبي سليمان سمع عامر بن عبد الله بن الزبير يحدث عن عمرو بن سليم
أن رسول الله ﷺ قال إذا دخل أحدكم المسجد فليركع ركعتين قبل أن يجلس و حدثنا مرة فقال عن عثمان بن أبي سليمان بن عجلان عن عامر بن عبد الله بن الزبير فذكر الحديث