Al-Ilmam bi-Ahadith al-Ahkam 359
وَعنهُ، أَن عمر مرَّ بِحسان بن ثَابت وَهُوَ ينشد الشّعْر، فِي الْمَسْجِد فلحظ إِلَيْهِ، فَقَالَ: قد كنت أنْشد وَفِيه من هُوَ خير مِنْك. ثمَّ الْتفت إِلَى أبي هُرَيْرَة فَقَالَ: أنشدُك بِاللَّه، أسمعتَ رَسُول الله ﷺ يَقُول: أجب عني، أجب عني ، اللَّهُمَّ، أيده بِروح الْقُدس ". قَالَ: اللَّهُمَّ نعم. لفظ مُسلم.
And from him, that ʿUmar passed by Hassan ibn Thabit while he was reciting poetry in the mosque, and he gave him a look. He said: "I used to recite [poetry] in it when there was someone in it better than you." Then he turned to Abu Hurayrah and said: "I ask you by Allah, did you hear the Messenger of Allah ﷺ say: 'Reply on my behalf, reply on my behalf. O Allah, support him with the Holy Spirit'?" He said: "By Allah, yes." The wording is Muslim's.