Hadith 23790
٢٣٧٩٠ - حدثنا أبو بكر قال: حدثنا جرير عن مغيرة عن إبراهيم في مملوك قال لمولاه: (بعني) (١) من فلان بكذا وكذا ولك (عليَّ) (٢) خمسمائة (درهم، أو: رجل جاءه فضمن، قال: بع غلامك من فلان بكذا وكذا ولك خمسمائة) (٣) قال: يبطل شرطه.
It is narrated from Ibrahim that if a slave says to his master: Sell me to so-and-so for such and such an amount, and I will owe you five hundred dirhams, or if someone comes and stands as guarantor and says: Sell your slave to so-and-so, you will have five hundred dirhams, is such a statement correct? He replied: This condition is invalid.
Hadith 23791
٢٣٧٩١ - حدثنا أبو بكر قال: حدثنا حميد بن عبد الرحمن عن حسن بن صالح عن مطرف عن الشعبي قال: لا يجوز، أو كلمة نحوها.
Hazrat Sha'bi (may Allah have mercy on him) says that it is not permissible.