Rifa reported,

On the day of Uhud, when the polytheists had withdrawn, the Messenger of Allah ﷺ said, "Line up straight so that I may praise my Lord عز وجل."So they formed rows behind him, and he said, "O Allah, all praise belongs to You. O Allah, there is none who can withhold what You have extended, none who can bring near what You have set far, none who can set far what You have brought near, none who can give what You have withheld, and none who can withhold what You have given.O Allah, extend over us Your blessings, Your mercy, Your favor, and Your provision. O Allah, I ask You for the lasting bliss that does not change or fade away. O Allah, I ask You for ease on the day of poverty and safety on the day of war. O Allah, I seek refuge in You from the evil of what You have given us and the evil of what You have withheld from us.O 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. O Allah, cause us to die as Muslims, give us life as Muslims, and join us with the righteous, neither disgraced nor put to trial.O Allah, fight the disbelievers who turn people away from Your path and reject Your messengers, and send down upon them Your punishment and torment. O Allah, fight the disbelievers who were given the Scripture, God of truth."Ali said, "I also heard it from Muhammad bin Bishr, and he traced it back with a chain, but I do not transmit it through him."

Azami 8876

Sahih

عن عبيد بن رفاعة الزرقي، عن أبيه قال

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

الأعظمي 8876صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Uhud expedition
Section
Supplication of the Prophet after burying the martyrs
Numbering
Jami al-Kamil 8876 (2nd edition)
Azami 8876