Salama b. al-Muhabbiq reported God’s messenger as saying, “If anyone has a riding-beast which carries him to where he can get sufficient food he should observe the fast of Ramadan wherever he is when it comes.”
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 God’s messenger went off to Mecca in Ramadan in the year of the Conquest, and he and the people fasted till he came to Kura' al-Ghamim.* He then called for a cup of water which he raised till the people looked at it, and then he drank. He was told afterwards that some of the people had continued to fast, and said, “Those are the disobedient ones; those are the disobedient ones.”
*A wadi two stages from Mecca on the way to Medina.
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.