Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said, "The most beloved fasting to Allah is the fasting of Dawud, for 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, pray for a third of it, and sleep for a sixth of it."

Ibn Majah 1712

Sahih

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

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

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

ابن ماجه 1712صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Fasting
Chapter
Fasting of Dawud عليه السلام
Numbering
Darussalam 1712
Ibn Majah 1712