Hamza bin Amr reported,

He asked the Messenger of Allah ﷺ about fasting while traveling, and the Prophet said, "If..." Then he mentioned a word to the effect of, "If you wish, fast, and if you wish, break your fast."

Nasai 2297

Sahih

أخبرنا قتيبة قال حدثنا الليث عن بكير عن سليمان بن يسار أن حمزة بن عمرو قال يا رسول الله مثله مرسل

النسائي 2297صحيح
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 2297
Nasai 2297