Sahih Muslim
Sahih Muslim 715 b
It is recommended to pray two rak`ah in the masjid for one who has come from a journey, when he first arrives
Arabic hadith text
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، عَنْ مُحَارِبٍ، سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ، يَقُولُاشْتَرَى مِنِّي رَسُولُ اللَّهِ صلى الله عليه وسلم بَعِيرًا فَلَمَّا قَدِمَ الْمَدِينَةَ أَمَرَنِي أَنْ آتِيَ الْمَسْجِدَ فَأُصَلِّيَ رَكْعَتَيْنِ .
Translation
Jabir b. 'Abdullah reported
The Messenger of Allah (ﷺ) bought a camel from me. When he came back to Medina, he ordered me to come to the mosque and observed two rak'ahs of prayer.