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.
ahmad:6991ʿAlī b. Isḥāq > ʿAbdullāh / Ibn al-Mubārak > Usāmah b. Zayd > ʿAmr b. Shuʿayb from his father > ʿAbdullāh b. ʿAmr

[Machine] The Prophet Muhammad ﷺ forbade buying and selling in the mosque.  

أحمد:٦٩٩١حَدَّثَنَا عَلِيُّ بْنُ إِسْحَاقَ أَخْبَرَنَا عَبْدُ اللهِ يَعْنِي ابْنَ الْمُبَارَكِ حَدَّثَنِي أُسَامَةُ بْنُ زَيْدٍ حَدَّثَنِي عَمْرُو بْنُ شُعَيْبٍ عَنْ أَبِيهِ عَنْ عَبْدِ اللهِ بْنِ عَمْرٍو قَالَ

نَهَى رَسُولُ اللهِ ﷺ عَنِ الْبَيْعِ وَالِاشْتِرَاءِ فِي الْمَسْجِدِ  


See similar narrations below:

Collected by Ibn Mājah
ibnmajah:749ʿAbdullāh b. Saʿīd al-Kindī > Abū Khālid al-Aḥmar > Ibn ʿAjlān > ʿAmr b. Shuʿayb from his father from his grandfather

"The Messenger of Allah forbade buying and selling in the mosque, and reciting poetry in the mosque."  

ابن ماجة:٧٤٩حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ الْكِنْدِيُّ حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ عَنِ ابْنِ عَجْلاَنَ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ قَالَ

نَهَى رَسُولُ اللَّهِ ﷺ عَنِ الْبَيْعِ وَالاِبْتِيَاعِ وَعَنْ تَنَاشُدِ الأَشْعَارِ فِي الْمَسَاجِدِ