Jami` at-Tirmidhi, Book 49, Hadith 264 (Tirmidhi 3961)

Narrated Abu Az-Zubair:

from Jabir, that a slave of Hatib 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.'"