(5) باب مَا يُكْرَهُ فِي الْمَسَاجِدِ
It was narrated from Ibn 'Umar that:
The Messenger of Allah said: "There are things which are not befitting for the mosque: it should not be taken as a thoroughfare; weapons should not be unsheathed in it; bows should not be drawn nor arrows shot in it; no one should pass through it carrying raw meat; no prescribed punishment or retaliatory punishment should be carried out in it; and it should not be used as a marketplace."
Reference: Sunan Ibn Majah 748
In-book reference: Book 4, Hadith 14
English translation: Vol. 1, Book 4, Hadith 748