Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:11052Abū ʿAbd al-Raḥman al-Sulamī > Abū al-Ḥasan b. Maḥmūd al-Marwazī > Muḥammad b. ʿAlī al-Ḥāfiẓ > Muḥammad b. al-Muthanná > Ibn Dāwud > Muṭīʿ al-Ghazzāl > al-Shaʿbī > Ibn ʿUmar > ʿUmar

[Machine] Trade is not permissible in anything that is not permissible to consume or drink.  

البيهقي:١١٠٥٢أَخْبَرَنَا أَبُو عَبْدِ الرَّحْمَنِ السُّلَمِيُّ ثنا أَبُو الْحَسَنِ بْنُ مَحْمُودٍ الْمَرْوَزِيُّ ثنا مُحَمَّدُ بْنُ عَلِيٍّ الْحَافِظُ ثنا مُحَمَّدُ بْنُ الْمُثَنَّى ثنا ابْنُ دَاوُدَ عَنْ مُطِيعٍ الْغَزَّالِ عَنِ الشَّعْبِيِّ عَنِ ابْنِ عُمَرَ عَنْ عُمَرَ ؓ قَالَ

لَا تَحِلُّ التِّجَارَةُ فِي شَيْءٍ لَا يَحِلُّ أَكْلُهُ وَشُرْبُهُ  


See similar narrations below:

Collected by Suyūṭī