Whenever the Prophet (ﷺ) returned from a journey in the forenoon, he would enter the Mosque and offer two rak`at before sitting.
Sahih al-Bukhari Book 56, Hadith 292