Hadith 704

Abu Qatada reported God’s Messenger as saying, “When one of you enters the mosque he should pray two rak'as before sitting down.” (Bukhari and Muslim.)

وَعَنْ أَبِي قَتَادَةَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «إِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلْيَرْكَعْ رَكْعَتَيْنِ قَبْلَ أَنْ يجلس»

Reference: 5607040
In-book reference: Book 4, Hadith 704