It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Fasting while on a journey is not righteousness."