Hadith 8:2232
Abu Bakr narrated to us, he said: Ali bin Hashim narrated to us, from Isma'il, from Abu Ma'shar, from Ibrahim, he said: If the slave performs Hajj, such and such, then he is emancipated, then Hajj is [incumbent] upon him.
حدثنا أبو بكر قال حدثنا علي بن هاشم عن إسماعيل عن أبي معشر عن إبراهيم قال إن حج المملوك كذا وكذا ثم أعتق فعليه الحج