Rifa reported,

The Messenger of Allah ﷺ said on the day of Uhud, in a long supplication, "Allah, make faith beloved to us and adorn it in our hearts, and make disbelief, wickedness, and disobedience hateful to us, and make us among the rightly guided. Allah, take our souls as Muslims, give us life as Muslims, and join us with the righteous, neither disgraced nor afflicted by trial." The hadith continues.

Azami 12928

Sahih

عن رفاعة الزرقي قال

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

الأعظمي 12928صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Shuara
Section
His saying, "My Lord, grant me wisdom and join me with the righteous"
Numbering
Jami al-Kamil 12928 (2nd edition)
Azami 12928