Jabir bin Abdullah reported,

When Abdullah bin Amr bin Haram was killed on the day of Uhud, the Messenger of Allah ﷺ said, "Jabir, shall I tell you what Allah عز وجل said to your father?"I replied, "Yes, please."He said, "Allah has never spoken to anyone except from behind a veil, but He spoke to your father face to face. He said, 'My servant, ask of Me whatever you wish and I will grant it.'Your father said, 'My Lord, bring me back to life so I may be killed in Your cause a second time.'Allah replied, 'It has already been decreed by Me that they shall not return to it.'Your father then said, 'My Lord, then convey my message to those I have left behind.'"So Allah عز وجل revealed this verse, "And never think of those who have been killed in the cause of Allah as dead" [Aal Imran 3:169], and the entire verse.

Ibn Majah 2800

Hasan

حدثنا إبراهيم بن المنذر الحزامي حدثنا موسى بن إبراهيم الحرامي الأنصاري سمعت طلحة بن خراش سمعت

جابر بن عبد الله يقول

لما قتل عبد الله بن عمرو بن حرام يوم أحد قال رسول الله ﷺ يا جابر ألا أخبرك ما قال الله عز وجل لأبيك قلت بلى قال ما كلم الله أحدا إلا من وراء حجاب وكلم أباك كفاحا فقال يا عبدي تمن علي أعطك قال يا رب تحييني فأقتل فيك ثانية قال إنه سبق مني أنهم إليها لا يرجعون قال يا رب فأبلغ من ورائي فأنزل الله عز وجل هذه الآية {ولا تحسبن الذين قتلوا في سبيل الله أمواتا} الآية كلها

ابن ماجه 2800حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Jihad
Chapter
Virtue of martyrdom in the way of Allah
Numbering
Darussalam 2800
Ibn Majah 2800