Abu Qatada reported,

Umar bin Khattab رضي الله عنه asked, "Messenger of Allah, what about someone who fasts two days and breaks his fast for one?"The Prophet replied, "Can anyone manage that?"Umar then asked, "Messenger of Allah, what about someone who fasts one day and breaks his fast the next?"He answered, "That was the fast of Dawud."Umar asked, "And what about someone who fasts one day and breaks his fast for two?"He said, "I wish I were given the strength to do that."

Ibn Majah 1713

Sahih

حدثنا أحمد بن عبدة حدثنا حماد بن زيد حدثنا غيلان بن جرير عن عبد الله بن معبد الزماني

عن أبي قتادة قال

قال عمر بن الخطاب رضي الله عنه يا رسول الله كيف بمن يصوم يومين ويفطر يوما قال ويطيق ذلك أحد قال يا رسول الله كيف بمن يصوم يوما ويفطر يوما قال ذلك صوم داود قال كيف بمن يصوم يوما ويفطر يومين قال وددت أني طوقت ذلك

ابن ماجه 1713صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Fasting
Chapter
Fasting of Dawud عليه السلام
Numbering
Darussalam 1713
Ibn Majah 1713