Hamza bin Amr reported,

I asked the Messenger of Allah ﷺ about fasting while traveling, and he said, "If you wish to fast, then fast, and if you wish to break your fast, then break it."

Nasai 2299

Sahih

أخبرنا محمد بن بشار قال حدثنا أبو بكر قال حدثنا عبد الحميد بن جعفر عن عمران بن أبي أنس عن سليمان بن يسار

عن حمزة بن عمرو قال

سألت رسول الله ﷺ عن الصوم في السفر فقال إن شئت أن تصوم فصم وإن شئت أن تفطر فأفطر

النسائي 2299صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Fasting
Chapter
Difference of opinion regarding Sulayman bin Yasar in the hadith of Hamza bin Amr about this
Numbering
Darussalam 2299
Nasai 2299