Abdullah bin Amr bin As reported,

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

Azami 2702

Sahih

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

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

الأعظمي 2702صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Standing in the third of the night after its half
Numbering
Jami al-Kamil 2702 (2nd edition)
Azami 2702