Ibn ‘Abbas said God's messenger left Medina to go to Mecca and fasted till he reached ‘Usfan. He then called for water, and raising it aloft so that the people might see it, he broke his fast and did not resume it till he reached Mecca, and that was in Ramadan. Ibn ‘Abbas used to say, “God’s messenger has fasted and has broken his fast, so he who wishes may fast and he who wishes may break his fast.”
(Bukhari and Muslim.)
In a version by Muslim from Jabir it says that he drank after the afternoon prayer.
Anas said that in the course of a journey with the Prophet when some of them were fasting and others broke their fast, they alighted at a stage on a hot day, and while those who fasted collapsed those who had broken their fast rose and set up the tents and watered the riding-beasts, whereupon God's messenger said, “Those who broke their fast have earned all the reward today.”
Anas b. Malik al-Ka‘bi reported God’s messenger as saying, “God has remitted half the prayer to the traveller, and fasting to the traveller, the woman who is suckling an infant and the woman who is pregnant.”
Abu Dawud, Tirmidhi, Nasa’i and Ibn Majah transmitted it.
Jabir said that in the course of a journey God’s messenger saw a crowd and a man who had been put in the shade. On asking the reason and being told that he was fasting he said, “Fasting while on a journey is not a part of righteousness.”