(5) باب مَا يُكْرَهُ فِي الْمَسَاجِدِ
It was narrated from 'Amr bin Shu'aib from his father that his grandfather said:
"The Messenger of Allah forbade buying and selling in the mosque, and reciting poetry in the mosque."
Reference: Sunan Ibn Majah 749
In-book reference: Book 4, Hadith 15
English translation: Vol. 1, Book 4, Hadith 749