Sahih Bukhari Volume 3, Book 31, Hadith Number 164.
Narated By ‘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.”