[Machine] The Messenger of Allah ﷺ said, "The most beloved fasting to Allah is the fasting of David, as he used to fast half of the year. And the most beloved prayer to Allah is the prayer of David, as he used to sleep half of the night, then he would wake up and pray, and then he would sleep again, and then he would wake up and pray one-third of the night after the half."
أَنَّ رَسُولَ اللهِ ﷺ قَالَ أَحَبُّ الصِّيَامِ إِلَى اللهِ صِيَامُ دَاوُدَ كَانَ يَصُومُ نِصْفَ الدَّهْرِ وَأَحَبُّ الصَّلَاةِ إِلَى اللهِ صَلَاةُ دَاوُدَ كَانَ يَرْقُدُ شَطْرَ اللَّيْلِ ثُمَّ يَقُومُ ثُمَّ يَرْقُدُ آخِرَهُ ثُمَّ يَقُومُ ثُلُثَ اللَّيْلِ بَعْدَ شَطْرِهِ