Volume 4 · Book 52 · Hadith 320
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 Rakat."
— Sahih Bukhari, Volume 4, Book 52: Fighting for the Cause of Allah (Jihaad), Hadith #320