Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said, "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 half the night, stand in prayer for a third of it, and sleep the final sixth."

Nasai 2346

Sahih

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

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

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

النسائي 2346صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Fasting
Chapter
Fast of the Prophet of Allah Dawud عليه السلام
Numbering
Darussalam 2346
Nasai 2346