Jami` at-Tirmidhi, Book 2, Hadith 168 (Tirmidhi 316)

Abu Qatadah narrated that :

Allah's Messenger said: "When one of you comes to the Masjid, then let him perform two Rak'ah before sitting."