Sayyiduna Abu Qatadah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "When one of you enters the mosque, let him not sit before praying two rak'ahs."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4923