(7) باب الصُّلْحِ مَعَ الْمُشْرِكِينَ
Narrated Al-Bara' bin 'Azib (ra):
On the day of Hudaibiya, the Prophet (ﷺ), the Prophet (ﷺ) made a peace treaty with the Al-Mushrikun on three conditions:1. The Prophet (ﷺ) would return to them any person from Al-Mushrikun (polytheists, idolaters, pagans).2. Al-Mushrikun pagans would not return any of the Muslims going to them, and 3. The Prophet (ﷺ) and his companions would come to Makkah the following year and would stay there for three days and would enter with their weapons in cases, e.g., swords, arrows, bows, etc.Abu Jandal came hopping, his legs being chained, but the Prophet (ﷺ) returned him to Al-Mushrikun.
Reference: Sahih al-Bukhari 2700
In-book reference: Book 53, Hadith 10
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 49, Hadith 863