The Messenger of Allah ﷺ said, "There are practices that should not take place in the mosque. It should not be used as a thoroughfare, no weapon should be unsheathed in it, no bow should be drawn in it, no arrows should be spread out in it, no raw meat should be carried through it, no prescribed punishment should be carried out in it, no retaliation should be exacted in it, and it should not be turned into a marketplace."
حدثنا يحيى بن عثمان بن سعيد بن كثير بن دينار الحمصي حدثنا محمد بن حمير حدثنا زيد بن جبيرة الأنصاري عن داود بن الحصين عن نافع
عن رسول الله ﷺ قال خصال لا تنبغي في المسجد لا يتخذ طريقا ولا يشهر فيه سلاح ولا ينبض فيه بقوس ولا ينشر فيه نبل ولا يمر فيه بلحم نيء ولا يضرب فيه حد ولا يقتص فيه من أحد ولا يتخذ سوقا
No references are available.
[Its chain of transmission is very daif] Recorded by Ibn Adi, see hadith 746 for its defect, and Busiri graded it daif.