It is narrated from Ka'b bin Asim Al-Ash'ari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Fasting during travel is not a good deed."
Hadith Referenceمسند الإمام الشافعي / كتاب الصيام / 624
Hadith Takhrijاخرجه ابن ماجة الصيام، باب ماجاء في الإفطار في السفر (1664) والنسائی، الصيام، باب ما يكره الصيام في السفر (2257) ۔ وصححه ابن خزيمة (2016) ۔ والحاكم : (1/ 433)۔