Sahih al-Bukhari, Book 56, Hadith 292 (Bukhari 2961)

Narrated Ka`b:

Whenever the Prophet (ﷺ) returned from a journey in the forenoon, he would enter the Mosque and offer two rak`at before sitting.