It is narrated from Sayyiduna al-Bara' (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) made the Treaty of al-Hudaybiyyah with the polytheists on three matters: "1. Whoever of the polytheists comes to you, you will return him; 2. Whoever of the Muslims comes to the disbelievers of Makkah will not be returned; 3. And you will enter Makkah the following year and stay there for three days, and you will come with the weapons, the sword and the like, in their sheaths." When Sayyiduna Abu Jandal (may Allah be pleased with him) came walking in his shackles, he (peace and blessings be upon him) returned him to the disbelievers.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجزية / 18829