Al-Ilmam bi-Ahadith al-Ahkam 329
وَعَن عبد الله بن عَمْرو بن الْعَاصِ رَضِيَ اللَّهُ عَنْهما أَن النَّبِي ﷺ قَالَ لَهُ: " أحب الصَّلَاة إِلَى الله صَلَاة دَاوُد، وَأحب الصّيام إِلَى الله صِيَام دَاوُد: كَانَ ينَام نصف اللَّيْل، وَيقوم ثلثه، وينام سدسه، ويصوم يَوْمًا وَيفْطر يَوْمًا ". لفظ البُخَارِيّ.
And from ʿAbdullah ibn ʿAmr ibn al-ʿAs, may Allah be pleased with them both, that the Prophet ﷺ said to him: "The prayer most beloved to Allah is the prayer of Dawud, and the fast most beloved to Allah is the fast of Dawud. He used to sleep half the night, stand a third of it and sleep a sixth of it, and he would fast one day and not fast the next." The wording is al-Bukhari's.