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."
أخبرنا قتيبة قال حدثنا الليث عن بكير عن سليمان بن يسار أن حمزة بن عمرو قال يا رسول الله مثله مرسل