Sayyiduna Abu Qatadah (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) said: "When one of you enters the mosque, let him not sit down until he has prayed two rak'ahs."
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3267