The Prophet (ﷺ) said: If anyone makes two transactions combined in one bargain, he should have the lesser of the two or it will involve usury.
Sunan Abi Dawud Book 24, Hadith 46