The Messenger of Allah ﷺ passed by a man lying in the shade of a tree who was having water sprinkled over him. He asked, "What is the matter with this companion of yours?"They replied, "Messenger of Allah, he is fasting."He said, "It is not righteousness to fast while traveling. Take hold of the concession Allah has granted you and accept it."
أخبرني شعيب بن شعيب بن إسحق قال حدثنا عبد الوهاب بن سعيد قال حدثنا شعيب قال حدثنا الأوزاعي قال حدثني يحيى بن أبي كثير قال أخبرني محمد بن عبد الرحمن قال
أن رسول الله ﷺ مر برجل في ظل شجرة يرش عليه الماء قال ما بال صاحبكم هذا قالوا يا رسول الله صائم قال إنه ليس من البر أن تصوموا في السفر وعليكم برخصة الله التي رخص لكم فاقبلوها
[Its isnad is sahih] It is found in Sunan Kabir, no. 2566, and Nasai criticized it with a defect that does not undermine it.Muhammad bin Abdul-Rahman is Ibn Thawban.