Sahih Bukhari Volume 003, Book 031, 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."