Sahih al-Bukhari, Book 30, Hadith 50 (Bukhari 1872)
Narrated `Aisha:
(the wife of the Prophet) Hamza bin `Amr Al-Aslami asked the Prophet, "Should I fast while traveling?" The Prophet (ﷺ) replied, "You may fast if you wish, and you may not fast if you wish."