From Sahih Muslim (Hadith 6903):
Abu Huraira reported that Allah's Messenger (ﷺ) used to supplicate (in these words):" O Allah, set right for me my religion which is the safeguard of my affairs. And set right for me the affairs of my world wherein is my living. And set right for me my Hereafter on which depends my after-life. And make the life for me (a source) of abundance for every good and make my death a source of comfort for me protecting me against every evil
Reference: Muslim 6903