Riyad as-Salihin, Book 9, Hadith 1177 (In-Book)

'Abdullah bin 'Amr (May Allah be pleased with them) reported: The Messenger of Allah said, "The Salat which is dearest to Allah is that of (Prophet) Dawud; and As-Saum (the fasting) which is dearest to Allah is that of (Prophet) Dawud. He used to sleep half the night, get up to perform Salat for one-third of it, then sleep through the remaining one-sixth of it; and he used to observe Saum on alternative days."[Al-Bukhari and Muslim].

وعن عبد الله بن عمرو بن العاص، رضي الله عنهما، أن رسول الله صلى الله عليه وسلم ، قال‏:‏ ‏ "‏أحب الصلاة إلى الله صلاة داود، وأحب الصيام إلى الله صيام داود، كان ينام نصف الليل ويقوم ثلثه وينام سدسه ويصوم يومًا ويفطر يومًا‏" ‏‏.‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏ ‏.‏

sunnah.com