Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said to me, "The most beloved fasting to Allah is the fasting of Dawud. He used to fast one day and break his fast the next. And the most beloved prayer to Allah is the prayer of Dawud. He used to sleep for half the night, stand in prayer for a third of it, and sleep for the final sixth."

Azami 4468

Sahih

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

قال لي رسول الله ﷺ: أحب الصيام إلى الله صيام داود، كان يصوم يوما ويفطر يوما. وأحب الصلاة إلى الله صلاة داود، كان ينام نصف الليل ويقوم ثلثه وينام سدسه.

الأعظمي 4468صحيح
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 4468 (2nd edition)
Azami 4468