Mujahid narrated:
That the Messenger of Allah fasted during Ramadan and broke his fast when traveling.