2. Ṣalāh (Prayer)

٢۔ كِتَابُ الصَّلَاةِ

2.262 [Machine] Prohibition of Reciting Poetry in the Mosque.

٢۔٢٦٢ النَّهْيُ عَنْ تَنَاشُدِ الْأَشْعَارِ فِي الْمَسْجِدِ

nasai-kubra:796Qutaybah b. Saʿīd > al-Layth > Ibn ʿAjlān > ʿAmr b. Shuʿayb from his father from his grandfather

It was narrated from 'Amr bin Shu'aib, from his father, from his grandfather, that the Prophet ﷺ forbade reciting poetry in the Masjid. (Using translation from Nasāʾī 715)  

الكبرى للنسائي:٧٩٦أَخْبَرَنَا قُتَيْبَةُ بْنُ سَعِيدٍ قَالَ حَدَّثَنَا اللَّيْثُ عَنِ ابْنِ عَجْلَانَ عَنْ عَمْرِو بْنِ شُعَيْبٍ عَنْ أَبِيهِ عَنْ جَدِّهِ

أَنَّ رَسُولَ اللهِ ﷺ «نَهَى عَنْ تَنَاشُدِ الْأَشْعَارِ فِي الْمَسْجِدِ»