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.
حدثنا إبراهيم بن المنذر الحزامي حدثنا موسى بن إبراهيم الحرامي الأنصاري سمعت طلحة بن خراش سمعت
لما قتل عبد الله بن عمرو بن حرام يوم أحد قال رسول الله ﷺ يا جابر ألا أخبرك ما قال الله عز وجل لأبيك قلت بلى قال ما كلم الله أحدا إلا من وراء حجاب وكلم أباك كفاحا فقال يا عبدي تمن علي أعطك قال يا رب تحييني فأقتل فيك ثانية قال إنه سبق مني أنهم إليها لا يرجعون قال يا رب فأبلغ من ورائي فأنزل الله عز وجل هذه الآية {ولا تحسبن الذين قتلوا في سبيل الله أمواتا} الآية كلها
[Hasan] Ibn Abu Asim narrated it in al-Jihad, no. 196, from Ibrahim bin Munzir with this wording. Tirmidhi graded it hasan, no. 3010, as did Munziri, and Ibn Hibban graded it sahih (al-Ihsan), no. 83/9, no. 6983, as did Hakim, 3/203, 204. See also no. 190.