Abu Malih reported,

I went with your father to visit Abdullah bin Amr, and he told us that the Messenger of Allah ﷺ had been informed about his fasting. The Prophet ﷺ came to visit him, so he placed a leather cushion stuffed with palm fibers for him. The Prophet ﷺ sat on the ground, and the cushion remained between them.The Prophet ﷺ asked, "Is it not enough for you to fast three days each month?"He said, "I replied, 'Messenger of Allah,' (wanting more)."The Prophet ﷺ said, "Then five."He said, "I replied, 'Messenger of Allah.'"The Prophet ﷺ said, "Then seven."He said, "I replied, 'Messenger of Allah.'"The Prophet ﷺ said, "Then nine."He said, "I replied, 'Messenger of Allah.'"The Prophet ﷺ said, "Then eleven."Then the Prophet ﷺ said, "There is no fast greater than the fast of Dawud عليه السلام, which is half of all time. Fast one day and break your fast the next."

Bukhari 1980

Sahih

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

أبو المليح قال

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

البخاري 1980صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Fasting
Chapter
Fasting of Dawud عليه السلام
Numbering
Darussalam 1980
Bukhari 1980