Abdullah bin Amr bin As reported,

The Messenger of Allah ﷺ said, "The most beloved fasting to Allah عز وجل is the fasting of Dawud عليه السلام. He would fast one day and break his fast the next. And the most beloved prayer to Allah is the prayer of Dawud. He would sleep for half the night, stand in prayer for a third of it, and sleep for a sixth of it."

Nasai 1631

Sahih

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

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

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

النسائي 1631صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Night prayer and voluntary prayers of the day
Chapter
Night prayer of the Prophet of Allah, Dawud عليه السلام
Numbering
Darussalam 1631
Nasai 1631