Sahih al-Bukhari, Book 56, Hadith 82 (Bukhari 2751)

Narrated Anas:

The Prophet (ﷺ) met them (i.e. the people) while he was riding an unsaddled horse with his sword slung over his shoulder.