(8) The Book of the Masjids
كتاب المساجد
(23) Chapter: The Prohibition Of Reciting Poetry In The Masjid
(23) باب النَّهْىِ عَنْ تَنَاشُدِ الأَشْعَارِ، فِي الْمَسْجِدِ
Sunan an-Nasa'i 715 
It was narrated from 'Amr bin Shu'aib, from his father, from his grandfather, that the Prophet (ﷺ) forbade reciting poetry in the Masjid.
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا اللَّيْثُ بْنُ سَعْدٍ، عَنِ ابْنِ عَجْلاَنَ، عَنْ عَمْرِو بْنِ شُعَيْبٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم نَهَى عَنْ تَنَاشُدِ الأَشْعَارِ فِي الْمَسْجِدِ ‏.‏
Grade :  Hasan (Darussalam)
Reference : Sunan an-Nasa'i 715
In-book reference : Book 8, Hadith 28
English translation : Vol. 1, Book 8, Hadith 716