2. Book of Ṣalāh

٢۔ كِتَابُ الصَّلَاةِ

2.118 [Machine] Prohibition of seeking misguidedness in the mosque, buying, and selling

٢۔١١٨ بَابُ النَّهْيِ عنِ اسْتنْشَادِ الضَّالَّةِ فِي الْمَسْجِدِ، وَالشِّراءِ، وَالْبَيْعِ

darimi:1441al-Ḥasan

That the Messenger of Allah ﷺ said: "When you see someone selling or buying in the Masjid then say: 'May Allah not profit your business.' And when you see someone announcing about something lost then say: 'May Allah not return it to you.'" The Hadith of Abu Hurairah is Hasan Gharib. This is acted upon according to some of the people of knowledge. They dislike selling and buying in the Masjid. This is the view of Ahmad and Ishaq. Some of the people of knowledge permitted selling and buying in the Masjid. (Using translation from Tirmidhī 1321)  

الدارمي:١٤٤١أَخْبَرَنَا الْحَسَنُ بْنُ أَبِي زَيْدٍ الْكُوفِيُّ حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ مُحَمَّدٍ أَخْبَرَنِي يَزِيدُ َ عَنْ مُحَمَّدِ بْنِ عَبْدِ الرَّحْمَنِ بْنِ ثَوْبَانَ عَنْ أَبِي هُرَيْرَةَ أَنَّ

رَسُولَ اللَّهِ ﷺ قَالَ إِذَا رَأَيْتُمْ مَنْ يَبِيعُ أَوْ يَبْتَاعُ فِي الْمَسْجِدِ فَقُولُوا لَا أَرْبَحَ اللَّهُ تِجَارَتَكَ وَإِذَا رَأَيْتُمْ مَنْ يَنْشُدُ فِيهِ الضَّالَّةَ فَقُولُوا لَا رَدَّهَا اللَّهُ عَلَيْكَ