I was on a journey in the company of the Prophet (ﷺ) and when we reached Medina, he said…

Sahih al-Bukhari Book 56 Hadith 292

Sahih al-Bukhari #3087

Fighting for the Cause of Allah (Jihaad) 56:292

Narrated Jabir bin `Abdullah:

I was on a journey in the company of the Prophet (ﷺ) and when we reached Medina, he said to me, "Enter the Mosque and offer two rak`at."

Chapter: The performance of Salat on returning from a journey

Grade: Sahih