Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said to me, "Abdullah, have I not been informed that you fast all day and stand in prayer all night?"I replied, "Yes, Messenger of Allah."He said, "Do not do that. Fast and break your fast, stand in prayer and sleep. For your body has a right over you, your eye has a right over you, your wife has a right over you, and your guest has a right over you. It is enough for you to fast three days each month, for you will have for each good deed ten times its like, and that amounts to fasting the entire year."But I pressed for more, so he made it stricter upon me.I said, "Messenger of Allah, I find that I have strength."He said, "Then fast the fast of the Prophet of Allah Dawud عليه السلام, and do not exceed it."I asked, "What was the fast of the Prophet of Allah Dawud عليه السلام?"He answered, "Half of the year."After he grew old, Abdullah used to say, "How I wish I had accepted the concession of the Prophet ﷺ."In another narration, "There is no fasting superior to the fasting of Dawud عليه السلام, which is half of the year. Fast one day and break your fast the next."And in another narration, "Observe the most beloved fast to Allah, the fast of Dawud عليه السلام. He used to fast one day and break his fast the next."

Azami 4466

Sahih

عن عبد الله بن عمرو بن العاص، قال

قال لي رسول الله ﷺ: يا عبد الله، ألم أخبر أنك تصوم النهار وتقوم الليل؟ فقلت: بلى يا رسول الله. قال: فلا تفعل صم وأفطر، وقم ونم، فإن لجسدك عليك حقا، وإن لعينك عليك حقا، وإن لزوجك عليك حقا، وإن لزورك عليك حقا، وإن بحسبك أن تصوم كل شهر ثلاثة أيام، فإن لك بكل حسنة عشر أمثالها، فإن ذلك صيام الدهر كله فشددت فشدد علي. قلت: يا رسول الله إني أجد قوة، قال: فصم صيام نبي الله داود عليه السلام ولا تزد عليه. قلت: وما كان صيام نبي الله داود عليه السلام؟ قال: نصف الدهر. فكان عبد الله يقول بعدما كبر: يا ليتني قبلت رخصة النبي ﷺ. وفي رواية: لا صوم فوق صوم داود عليه السلام: شطر الدهر، صم يوما وأفطر يوما. وفي رواية: صم أفضل الصيام عند الله، صوم داود عليه السلام كان يصوم يوما ويفطر يوما.

الأعظمي 4466صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Voluntary fasting and encouragement to do it
Section
Most virtuous fasting is the fasting of Dawud عليه السلام
Numbering
Jami al-Kamil 4466 (2nd edition)
Azami 4466