حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ الْكِنْدِيُّ، حَدَّثَنَا أَبُو خَالِدٍ الأَحْمَرُ، عَنِ ابْنِ عَجْلاَنَ، عَنْ عَمْرِو بْنِ شُعَيْبٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، قَالَ نَهَى رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ عَنِ الْبَيْعِ وَالاِبْتِيَاعِ وَعَنْ تَنَاشُدِ الأَشْعَارِ فِي الْمَسَاجِدِ ‏.‏

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." Translation Not Available

Book Ref: Sunan Ibn Majah Book 4 Hadith 749
Web Ref:  Sunan Ibn Majah Vol 1 Book 4 Hadith 749