The Messenger of Allah ﷺ said, "It is not permissible to combine a loan with a sale, nor to set two conditions in one sale, nor to sell what you do not possess."
أخبرنا عمرو بن علي وحميد بن مسعدة عن يزيد قال حدثنا أيوب
أن رسول الله ﷺ قال لا يحل سلف وبيع ولا شرطان في بيع ولا بيع ما ليس عندك
Its isnad is sahih. Abu Dawud narrated it in the Book of Business Transactions, chapter on a man selling what he does not have, hadith no. 2903, from the hadith of Ayub through this route. Tirmidhi said in hadith no. 1234, hasan sahih, and it is also in Al-Kubra, hadith no. 6204, or he graded it sahih. Ibn Najarud also included it, folio 6/10/1, as did Hakim 2/17, and Dhahabi agreed with him.