Abdullah bin Amr bin As reported,

Word reached the Prophet ﷺ that I was fasting continuously and praying through the night. He sent for me, or perhaps met me, and said, "Have I not been told that you fast without breaking your fast and pray all night? Do not do this, for your eye has a right over you, your soul has a right over you, and your family has a right over you. So fast and break your fast, pray and sleep. Fast one day out of every ten, and you will have the reward of nine."I said, "I am stronger than that, Messenger of Allah."He said, "Then fast the fast of Dawud."I asked, "And how did Dawud fast, Prophet of Allah?"He answered, "He used to fast one day and break his fast the next, and he would never flee when he met the enemy."I said, "Who can grant me that, Prophet of Allah?"

Nasai 2403

Sahih

أخبرنا إبراهيم بن الحسن قال حدثنا حجاج قال قال ابن جريج سمعت عطاء يقول إن أبا العباس الشاعر أخبره أنه سمع

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

بلغ النبي ﷺ أني أصوم أسرد الصوم وأصلي الليل فأرسل إليه وإما لقيه قال ألم أخبر أنك تصوم ولا تفطر وتصلي الليل فلا تفعل فإن لعينك حظا ولنفسك حظا ولأهلك حظا وصم وأفطر وصل ونم وصم من كل عشرة أيام يوما ولك أجر تسعة قال إني أقوى لذلك يا رسول الله قال صم صيام داود إذا قال وكيف كان صيام داود يا نبي الله قال كان يصوم يوما ويفطر يوما ولا يفر إذا لاقى قال ومن لي بهذا يا نبي الله

النسائي 2403صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Fasting
Chapter
Fasting ten days of the month and the differences in wording among narrators of the hadith of Abdullah bin Amr concerning it
Numbering
Darussalam 2403
Nasai 2403