It was enquired of the Promised Messiahas what the instruction was in relation to fasting whilst on a journey. The Promised Messiahas responded by saying:
“As far as the Quran teaches, we learn:
فَمَنۡ کَانَ مِنۡکُمۡ مَّرِیۡضًا اَوۡ عَلٰی سَفَرٍ فَعِدَّۃٌ مِّنۡ اَیَّامٍ اُخَرَ
“[‘But whoso among you is sick or is on a journey shall fast the same number of other days.’ (Surah al-Baqarah, Ch.2: V.185)]“In other words, a person who is ill or on a journey is not to fast. This is an order. Allah the Exalted has not stated that anyone who is able should fast, and a person who is unable should abstain. In my view, a traveller should not fast. In general, however, since most people do fast whilst on a journey, a person may fast while they are travelling, considering this to be the established practice. However, the commandment of عِدَّۃٌ مِّنۡ اَیَّامٍ اُخَرَ [i.e., to fast the same number of other days when fasts are missed in Ramadan] must be kept in consideration.”
(Al Hakam, 31 January 1899; Malfuzat [English], 2019, Vol. 2, p. 13)