Hadith.3476 - Al-Qasim ibn Burayd narrated from Muhammad ibn Muslim, from Abu Ja'far Imam Muhammad ibn Ali Al-Baqir عليه السلام, regarding a mukatab (a slave under a contract of emancipation) who had a condition stipulated that if he failed to fulfill the contract, he would return to slavery.
Imam عليه السلام said: "Muslims are bound by their conditions."