Jami` at-Tirmidhi, Book 49, Hadith 4238 (In-Book)

Narrated Abu Az-Zubair: from Jabir, that a slave of Hatib [bin Abi Balt'ah] came to the Messenger of Allah complaining about Hatib. So he said: 'O Messenger of Allah! Hatib is going to enter the Fire!' So the Messenger of Allah said: 'You have lied! No one who participated in (the battle of) Badr and (the treaty of) Al-Hudaybiyah shall enter it.'"

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

sunnah.com