ENOfficial
Abu Qatadah reported the Messenger of Allah (May peace be upon him) as saying; when any one of you enters the mosque, he should pray two RAKAHS before sitting down.
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا الْقَعْنَبِيُّ، حَدَّثَنَا مَالِكٌ، عَنْ عَامِرِ بْنِ عَبْدِ اللَّهِ بْنِ الزُّبَيْرِ، عَنْ عَمْرِو بْنِ سُلَيْمٍ الزُّرَقِيِّ، عَنْ أَبِي قَتَادَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " إِذَا جَاءَ أَحَدُكُمُ الْمَسْجِدَ فَلْيُصَلِّ سَجْدَتَيْنِ مِنْ قَبْلِ أَنْ يَجْلِسَ " .
sunnah.com