Hadithcore
Hadith #2109680

Narrated 'Amr bin Shu'aib on his father's authority from his grandfather (RA):

"Allah's Messenger (ﷺ) said: "The condition of a loan combined with a sale is not lawful, now two conditions relating to one transaction, nor the profit arising from something which is not in one's charge, nor selling what is not in your possession." [Reported by al-Khamsa. at-Tirmidhi, Ibn Khuzaimah and al-Hakim graded it Sahih (authentic)].

وَعَنْ عَمْرِوِ بْنِ شُعَيْبٍ, عَنْ أَبِيهِ, عَنْ جَدِّهِ قَالَ: قَالَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-{ لَا يَحِلُّ سَلَفٌ وَبَيْعٌ وَلَا شَرْطَانِ فِي بَيْعٍ, وَلَا رِبْحُ مَا لَمْ يُضْمَنْ, وَلَا بَيْعُ مَا لَيْسَ عِنْدَكَ } رَوَاهُ اَلْخَمْسَةُ, وَصَحَّحَهُ اَلتِّرْمِذِيُّ, وَابْنُ خُزَيْمَةَ, وَالْحَاكِمُ [1]‏ .‏

References2 variants
Sunnah.com reference
Book 7, Hadith 24
Arabic/English book reference
Book 7, Hadith 803