Hadithcore
Sahih al-Bukhari, 4906
sahih

Narrated Musa bin `Uqba:

`Abdullah bin Al-Fadl told me that Anas bin Malik said, "I was much grieve over those who had been killed in the Battle of Al-Harra. When Zaid bin Arqarr heard of my intense grief (over the killed Ansar), he wrote a letter to me saying that he heard Allah's Messenger (ﷺ) saying, O Allah! Forgive the Ansar and the Ansar children. The subnarrator, Ibn Al-Fadl, is not sure whether the Prophet (ﷺ) also said, And their grand-children." Some of those who were present, asked Anas (about Zaid). He said, "He (Zaid) is the one about whom Allah's Messenger (ﷺ) said, 'He is the one whose sound hearing Allah testified.'

حَدَّثَنَا إِسْمَاعِيلُ بْنُ عَبْدِ اللَّهِ، قَالَ حَدَّثَنِي إِسْمَاعِيلُ بْنُ إِبْرَاهِيمَ بْنِ عُقْبَةَ، عَنْ مُوسَى بْنِ عُقْبَةَ، قَالَ حَدَّثَنِي عَبْدُ اللَّهِ بْنُ الْفَضْلِ، أَنَّهُ سَمِعَ أَنَسَ بْنَ مَالِكٍ، يَقُولُ حَزِنْتُ عَلَى مَنْ أُصِيبَ بِالْحَرَّةِ فَكَتَبَ إِلَىَّ زَيْدُ بْنُ أَرْقَمَ وَبَلَغَهُ شِدَّةُ حُزْنِي يَذْكُرُ أَنَّهُ سَمِعَ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏"‏ اللَّهُمَّ اغْفِرْ لِلأَنْصَارِ وَلأَبْنَاءِ الأَنْصَارِ ‏"‏ ـ وَشَكَّ ابْنُ الْفَضْلِ فِي أَبْنَاءِ أَبْنَاءِ الأَنْصَارِ ـ فَسَأَلَ أَنَسًا بَعْضُ مَنْ كَانَ عِنْدَهُ فَقَالَ هُوَ الَّذِي يَقُولُ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ هَذَا الَّذِي أَوْفَى اللَّهُ لَهُ بِأُذُنِهِ ‏"‏‏.‏

References2 variants
In-Book Reference
Book 65, Hadith 426
USC-MSA web (English) reference
Vol. 6, Book 60, Hadith 429 (deprecated numbering scheme)