Hadith
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، عَنْ يَحْيَى بْنِ زَكَرِيَّا، عَنْ مُحَمَّدِ بْنِ عَمْرٍو، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم " مَنْ بَاعَ بَيْعَتَيْنِ فِي بَيْعَةٍ فَلَهُ أَوْكَسُهُمَا أَوِ الرِّبَا " .
Narrated AbuHurayrah: 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
Hasan · Al-Albani
Sunan Abi Dawud 3461 ·Book 24, Hadith 46·Also available on sunnah.com·