Bulugh al-Maram, Book 16, Hadith 1607 (English)

Abu Hurairah (RAA) narrated that the Messenger of Allah used to say, “O Allah! Set right for me my religion, which is the safeguard of my affairs. And set right for me the affairs of the world wherein is my living. Decree the Hereafter to be good for me. And make this life, for me, (a source) of abundance for every good and make my death (a source) of comfort to me and protection against every evil.” Related by Muslim.

وَعَنْ أَبِي هُرَيْرَةَ ‏- رضى الله عنه ‏- قَالَ: { كَانَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-يَقُولُ: اَللَّهُمَّ أَصْلِحْ لِي دِينِي اَلَّذِي هُوَ عِصْمَةُ أَمْرِي, وَأَصْلِحْ لِي دُنْيَايَ اَلَّتِي فِيهَا مَعَاشِي, وَأَصْلِحْ لِي آخِرَتِي اَلَّتِي إِلَيْهَا مَعَادِي, وَاجْعَلْ اَلْحَيَاةَ زِيَادَةً لِي فِي كُلِّ خَيْرٍ, وَاجْعَلْ اَلْمَوْتَ رَاحَةً لِي مِنْ كُلِّ شَرٍّ } أَخْرَجَهُ مُسْلِمٌ.‏ (2028)‏.‏ ‏2 ‏- صحيح.‏ رواه مسلم (2820)‏.‏

sunnah.com

also referenced under: Book 16, Hadith 1564 (In-Book)