Sahih Bukhari | Volume 3 | Hadith Number 164

Narrated by 'Aisha
(The wife of the Prophet) Hamza bin 'Amr Al-Aslami asked the Prophet, "Should I fast while travelling?" The Prophet replied, "You may fast if you wish, and you may not fast if you wish."