he asked the Messenger of Allah about fasting while traveling. He said: "If you wish to fast then fast, and if you wish not to fast then do not fast."
أَنَّهُ سَأَلَ رَسُولَ اللَّهِ ﷺ عَنِ الصَّوْمِ فِي السَّفَرِ قَالَ إِنْ شِئْتَ أَنْ تَصُومَ فَصُمْ وَإِنْ شِئْتَ أَنْ تُفْطِرَ فَأَفْطِرْ