Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said to me, "Abdullah bin Amr, I have heard that you fast every day and stand in prayer all night. If you keep doing this, your eyes will sink and your soul will grow weary. The one who fasts perpetually has not truly fasted. Fasting three days each month is equivalent to fasting the entire year."I said, "I am able to do more than that."He said, "Then fast the fast of Dawud. He used to fast one day and break his fast the next, and he would never flee when he met the enemy in battle."

Nasai 2401

Sahih

أخبرنا محمد بن عبد الأعلى قال حدثنا خالد حدثنا شعبة قال أخبرني حبيب بن أبي ثابت قال سمعت أبا العباس هو الشاعر يحدث

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

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

النسائي 2401صحيح
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 2401
Nasai 2401