It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him): "A man asked the Prophet (peace and blessings be upon him) and said that he wished to fast perpetually (all his life). He (peace and blessings be upon him) forbade him from it. He insisted again, and he (peace and blessings be upon him) forbade him again, and this insistence happened three times. Then he (peace and blessings be upon him) said: 'But fast as (Sayyiduna) Dawud (peace be upon him) fasted.' So that man kept fasting one day and leaving one day until he died."
Imam Musaddad recorded this hadith, and its chain is da'if (weak) because Bishr bin Harb is weak.
Hadith Takhrij«رواه مسدد بسند ضعيف؛ لضعف بشر بن حرب» «أخرجه صحيح مسلم برقم: 1162، وأخرجه سنن الترمذي برقم: 767، وأخرجه سنن النسائي برقم: 2383، وأخرجه سنن أبي داود برقم: 2425، وأخرجه سنن ابن ماجه برقم: 1713، وأخرجه مسند أحمد برقم: 22024، 22075، وأخرجه فتح الباري برقم: 1796، 1876، وأخرجه صحيح ابن خزيمة برقم: 2087، 2099، 2100، 2111، 2126، وأخرجه صحيح ابن حبان برقم: 3632، وأخرجه شرح مشكل الآثار برقم: 2337، 2964، وأخرجه معرفة السنن والآثار برقم: 8950، وأخرجه شرح السنة برقم: 1790، وأخرجه السنن الصغير للبيهقي برقم: 1410»