It wasnarrated from Jabir bin 'Abdullah:
"When 'Abdullah bin 'Amrbin Haram was killed, on the Day of Uhud, the Messenger of Allah(ﷺ)said: 'O Jabir, shall I not tell you what Allah said to yourfather?'I said: 'Yes.' He said: 'Allah does not speak toanyone except frombehind a screen, but He spoke to your father faceto face and said: "OMy slave, ask Me and I shall give you." Hesaid: "O my Lord, bring meback to life so that I may be killed forYour sake a second time." Hesaid: "I have already decreed thatthey will not return (to the worldafter death)." He said: "OLord, convey (the good news about my state)to those whom I have leftbehind." So Allah revealed this Verse:'Think not of those asdead who are killed in the way ofAllah.'"[3:169]
English reference: Vol. 4, Book 24, Hadith 2800
Arabic reference: Book 24, Hadith 2906