Sunan an-Nasa'i, Book 22, Hadith 205 (Nasa'i 2299)

It was narrated from Hamza bin 'Amr Al-Aslami that:

he asked the Messenger of Allah about fasting while traveling. He said: "If," then he said something to the effect that: "If you want, then fast, and if you want, then do not fast.