It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that once the Prophet (peace and blessings be upon him) said that people had gathered around a man and were shading him. (Upon inquiry, people informed that he was fasting.) The Prophet (peace and blessings be upon him) said: Fasting while traveling is not an act of righteousness.