Allah's Messenger (ﷺ) fasted and broke the fast, so he who wished fasted and he who wished to break it broke it.
Sahih Muslim Book 13, Hadith 114