صحيح ابن خزيمه
Sahih Ibn Khuzaymah
Hadith Number: 1825
نا عبد الجبار بن العلاء ، حدثنا سفيان ، حدثنا ابن عجلان ، وعثمان بن ابي سليمان ، عن عامر بن عبد الله بن الزبير ، عن عمرو بن سليم ، عن ابي قتادة ، ان النبي صلى الله عليه وسلم، قال: " إذا دخل احدكم المسجد فليصل ركعتين"
It is narrated from Sayyiduna Abu Qatadah (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: "When any one of you enters the mosque, he should perform two rak‘ahs of prayer."
تخریج الحدیث:
Hadith Number: 1826
نا عبد الله بن هاشم ، حدثنا عبد الرحمن يعني ابن مهدي ، عن مالك ، عن عامر بن عبد الله بن الزبير بهذا الإسناد مثله. زاد:" قبل ان يجلس"
The Imam, through his teacher Abdullah bin Hashim, narrates with the same chain as mentioned above. There is an addition in this: before sitting (he should perform two rak‘ahs).
تخریج الحدیث: