Narrated Anas (ra) said that a man made this supplication in the presence of the Prophet (ﷺ) "O Allah, you have not bestowed upon me wealth so I cannot give Sadaqah, hence involve me in anxiety so that I may earn reward against that. The prophet said," Subhan Allah! You cannot endure difficulty. Why did you :
(O Allah, let us have the good of this world and the good of the hereafter and save us from the torment of the fire).
Abbas bin Abdul Mmuttalib (ra) said that he requested the Messenger of Allah (ﷺ) to teach him a supplication whereby he May request Allah for his needs. The Prophet (ﷺ) said,"0 Abbas, ask Allah for aafiyah (security). After some days, he again met the Prophet (ﷺ) and asked," Teach me a supplication to beseech Allah for my want." He said, "O Abbas! O uncle of the messenger of Allah! Ask Allah for aafiyah (security) in this world and the next."
Narrated Anas said that the Prophet (ﷺ) visited a sick man who had withered from sickness to such an extent that he could be compared to a bridling whose feathers had been plucked out. The Prophet (ﷺ) said to him, "Make supplication for health." So, he began to supplicate Allah, " O Allah whatever punishment:
O Allah, grant us what is good in this world and what is good in the hereafter, and save us from the chastisement of the fire." Then the Prophet (ﷺ) made a supplication for him and Allah, the Mighty, the Gracious, gave him cure from sickness.
Narrated Muaz (ra) said that the Prophet (ﷺ) passed by a man who was saying:
“O Allah, I ask you for all of the blessing.” He asked the man whether he knew what all the blessing meant and he said that it meant admittance to paradise and safety from Hell. Then the Prophet (ﷺ) passed by another man who was saying: “O Allah! I ask you for patience”. The Prophet (ﷺ) said to him, "You have asked your lord for trial and difficulty over yourself. So, now ask him also for safety (aafiyah)". The Prophet (ﷺ) then came across a third man who said: “O owner of majesty and splendor!”. The Prophet (ﷺ) said to him, "Make a request!" (because you have called Allah by this great attribute).