It was narrated that Sa'eed bin Al-Musayyab said: "Umar passed by Hassan bin Thabit while he was reciting poetry in the Masjid, and glared at him. He said: “I recited poetry when there was someone better than you in the Masjid.' Then he turned to Abu Hurairah and said: “Did you not hear the Messenger of Allah (ﷺ) when he said: "Answer back on my behalf. O Allah, help him with the Holy Spirit!'" He said: “Yes, by Allah”””"
SahihSahihSahih - Agreed UponBook 8 · Hadith 29