Is it you who said this? I said to him: Messenger of Allah, it is I who said that. Thereupon the Messenger of Allah may peace be upon him) said: You are not capable enough to do so. Observe fast and break it; sleep and stand for prayer, and observe fast for three days during the month; for every good is multiplied ten times and this is like fasting for ever. I said: Messenger of Allah. I am capable of doing more than this. Thereupon he said: Fast one day and do not fast for the next two days. I said: Messenger of Allah, I have the strength to do more than that. The Prophet ﷺ, said: Fast one day and break on the other day. That is known as the fasting of David (peace be upon him) and that is the best fasting. I said: I am capable of doing more than this. Thereupon the Messenger of Allah ﷺ said: There is nothing better than this. 'Abdullah b. 'Amr (Allah be pleased with them) said: Had I accepted the three days (fasting during every month) as the Messenger of Allah ﷺ had said, it would have been more dear to me than my family and my property. (Using translation from Muslim 1159a)
ذُكِرَ لِرَسُولِ اللهِ ﷺ أَنَّهُ يَقُولُ لَأَقُومَنَّ اللَّيْلَ وَلَأَصُومَنَّ النَّهَارَ مَا عِشْتُ فَقَالَ رَسُولُ اللهِ ﷺ «أَنْتَ الَّذِي تَقُولُ ذَلِكَ؟» فَقُلْتُ لَهُ قَدْ قُلْتُهُ يَا رَسُولَ اللهِ فَقَالَ رَسُولُ اللهِ ﷺ «فَإِنَّكَ لَا تَسْتَطِيعُ ذَلِكَ فَصُمْ وَأَفْطِرْ وَنَمْ وَقُمْ وَصُمْ مِنَ الشَّهْرِ ثَلَاثَةَ أَيَّامٍ فَإِنَّ الْحَسَنَةَ بِعَشْرِ أَمْثَالِهَا وَذَلِكَ مِثْلُ صِيَامِ الدَّهْرِ» قُلْتُ فَإِنِّي أُطِيقُ أَفْضَلَ مِنْ ذَلِكَ قَالَ «صُمْ يَوْمًا وَأَفْطِرْ يَوْمَيْنِ» قُلْتُ فَإِنِّي أُطِيقُ أَفْضَلَ مِنْ ذَلِكَ يَا رَسُولَ اللهِ قَالَ «فَصُمْ يَوْمًا وَأَفْطِرْ يَوْمًا وَذَلِكَ صِيَامُ دَاوُدَ وَهُوَ أَعْدَلُ الصِّيَامِ» قُلْتُ فَإِنِّي أُطِيقُ أَفْضَلَ مِنْ ذَلِكَ قَالَ رَسُولُ اللهِ ﷺ «لَا أَفْضَلَ مِنْ ذَلِكَ» قَالَ عَبْدُ اللهِ بْنُ عَمْرٍو لَأَنْ أَكُونَ قَبِلْتُ الثَّلَاثَةَ الْأَيَّامَ الَّتِي قَالَ رَسُولُ اللهِ ﷺ أَحَبُّ إِلَيَّ مِنْ أَهْلِي وَمَالِي