Allah's Messenger said: "When one of you comes to the Masjid, then let him perform two Rak'ah before sitting."
Jami` at-Tirmidhi Book 2, Hadith 168