Hadith on Dua: Why not ask for good in this life and the Hereafter?

Anas reported: The Messenger of Allah, peace and blessings be upon him, visited a sick man among the Muslims and he was so emaciated that he was like thin bird. The Prophet said to him, “Have you supplicated for anything or asked from Allah?” The man said, “Yes. I said: O Allah, as long as I am safe in the Hereafter, hasten my punishment in this world.” The Prophet said, “Glory be to Allah! You cannot withstand it. Why did you not say: O Allah, give us goodness in the world and goodness in the Hereafter and save us from the punishment of the Hellfire (2:201)?” Then, the man supplicated to Allah for it and he was healed.

Source: Ṣaḥīḥ Muslim 2688

Grade: Sahih (authentic) according to Muslim

عَنْ أَنَسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ عَادَ رَجُلًا مِنْ الْمُسْلِمِينَ قَدْ خَفَتَ فَصَارَ مِثْلَ الْفَرْخِ فَقَالَ لَهُ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ هَلْ كُنْتَ تَدْعُو بِشَيْءٍ أَوْ تَسْأَلُهُ إِيَّاهُ قَالَ نَعَمْ كُنْتُ أَقُولُ اللَّهُمَّ مَا كُنْتَ مُعَاقِبِي بِهِ فِي الْآخِرَةِ فَعَجِّلْهُ لِي فِي الدُّنْيَا فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ سُبْحَانَ اللَّهِ لَا تُطِيقُهُ أَفَلَا قُلْتَ اللَّهُمَّ آتِنَا فِي الدُّنْيَا حَسَنَةً وَفِي الْآخِرَةِ حَسَنَةً وَقِنَا عَذَابَ النَّارِ قَالَ فَدَعَا اللَّهَ لَهُ فَشَفَاهُ

2688 صحيح مسلم كتاب الذكر والدعاء والتوبة والاستغفار باب كراهة الدعاء بتعجيل العقوبة في الدنيا