Saaib bin Malik reported,

Ammar bin Yasir led us in a prayer and made it brief. Some of the people remarked, "You shortened the prayer," or "You made it brief."He replied, "Even so, I supplicated within it with supplications I heard from the Messenger of Allah ﷺ."When he stood up, one of the people followed him. It was Ubayy himself, though he referred to himself indirectly. He asked him about the supplication, then came back and informed the people of it."O Allah, by Your knowledge of the unseen and Your power over creation, keep me alive so long as You know that life is best for me, and take me when You know that death is best for me. O Allah, I ask You for awe of You in private and in public, and I ask You for the word of truth in pleasure and in anger, and I ask You for moderation in poverty and in wealth. I ask You for blessings that never cease, and I ask You for delight of the eye that never ends. I ask You for contentment after Your decree, and I ask You for the coolness of life after death. I ask You for the pleasure of gazing upon Your face and the longing to meet You, free from any harmful affliction or misleading trial. O Allah, adorn us with the beauty of faith, and make us guides who are themselves rightly guided."

Azami 11373

Sahih

عن عطاء بن السائب، عن أبيه، قال

صلى بنا عمار بن ياسر صلاة فأوجز فيها، فقال بعض القوم: لقد خففت أو أوجزت الصلاة. فقال: أما على ذلك فقد دعوت فيها بدعوات سمعتهن من رسول الله ﷺ فلما قام تبعه رجل من القوم- هو أبي غير أنه كنى عن نفسه-، فسأله عن الدعاء، ثم جاء فأخبر به القوم: اللهم بعلمك الغيب، وقدرتك على الخلق أخيني ما علمت الحياة خيرا لي، وتوفني إذا علمت الوفاة خيرا لي اللهم، وأسألك خشيتك في الغيب والشهادة، وأسألك كلمة الحق في الرضا والغضب، وأسألك القصد في الفقر والغنى وأسألك نعيما لا ينفد، وأسألك قرة عين لا تنقطع، وأسألك الرضا بعد القضاء، وأسألك برد العيش بعد الموت، وأسألك لذة النظر إلى وجهك والشوق إلى لقائك في غير ضراء مضرة ولا فتنة مضلة، اللهم زينا بزينة الإيمان، واجعلنا هداة مهتدين.

الأعظمي 11373صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Comprehensive and general supplications
Section
Miscellaneous on supplication
Numbering
Jami al-Kamil 11373 (2nd edition)
Azami 11373