Fiqh-us-Sunnah Volume 2, Supererogatory Prayer, Fiqh 2.070.
Section : The prayer of salutations to the mosque (tahyyatul masjid).
Abu Qatadah reports that the Messenger of Allah said: “When one of you comes to the mosque, he should pray two rak’at before he sits.” This is related by the group.