Sunan Abi Dawud, Book 42, Hadith 58 (Abu Dawud 4655)

Jabir reported the Messenger of Allah (ﷺ) as saying:

No one of those who took the oath of allegiance under the tree will go to hell.