Sayyiduna Hamzah bin Amr Aslami (may Allah be pleased with him) narrates that during the blessed time of the Messenger of Allah (peace and blessings be upon him), I used to observe continuous fasting. So I asked, "O Messenger of Allah, indeed I observe continuous fasting without any break, so should I fast while traveling?" The Prophet (peace and blessings be upon him) said: "If you wish, then fast, and if you wish, then do not fast." Imam Abu Bakr (may Allah have mercy on him) says that I have mentioned other chains of this narration at another place.
Explanation & Benefits
Shaykh Muhammad Farooq Rafi
Benefits:
➊ It is argued from this hadith that fasting continuously for a lifetime is not disliked.
But arguing this from this hadith is not correct, because continuity in fasting also applies to someone who does not fast perpetually for a lifetime. [Fath al-Bari: 196/6]
➋ Both fasting and not fasting while travelling are permissible.
Source: Sahih Ibn Khuzaymah: Commentary by Muhammad Farooq Rafee, Page: 2153