It is narrated from Umm al-Mu'minin Sayyida Aisha (may Allah be pleased with her) that Hamza bin Amr al-Aslami (may Allah be pleased with him) asked the Prophet (peace and blessings be upon him), saying: "O Messenger of Allah (peace and blessings be upon him)! I observe fasts continuously, so can I fast while traveling?" The Prophet (peace and blessings be upon him) said: "If you wish, then fast, and if you wish, then break your fast."
Hadith Referenceالسنن المأثورة / باب صيام من أصبح جنبا / 306
Hadith Takhrijصحيح بخارى، الصوم، باب الصوم في السفر والافطار، رقم : 1943 ، صحیح مسلم، الصيام، باب التخيير في الصوم والفطر في السفر، رقم : 1121