The Messenger of Allah ﷺ forbade combining a loan with a sale, stipulating two conditions in a single sale, selling what you do not possess, and profiting from what you have not yet taken responsibility for.
أخبرنا محمد بن رافع قال حدثنا عبد الرزاق قال حدثنا معمر عن أيوب
نهى رسول الله ﷺ عن سلف وبيع وعن شرطين في بيع واحد وعن بيع ما ليس عندك وعن ربح ما لم يضمن