Sahih Muslim #5887 · The Book of Poetry

Sahih Muslim'Amr b. Sharid reported on the authority of his father that Allah's Messenger
Sahih Muslim · Book 41 · The Book of Poetry
Sahih Muslim · كتاب 41 · كتاب الشعر
"He (that is Umayya b. Abu Salt) was about to become a Muslim", and in the hadith transmitted on the authority of Ibn Mahdi (the words are) "He was almost a Muslim in his poetry."
وَحَدَّثَنَا يَحْيَى بْنُ يَحْيَى، أَخْبَرَنَا الْمُعْتَمِرُ بْنُ سُلَيْمَانَ، ح وَحَدَّثَنَا زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، كِلاَهُمَا عَنْ عَبْدِ اللَّهِ بْنِ عَبْدِ الرَّحْمَنِ الطَّائِفِيِّ، عَنْ عَمْرِو، بْنِ الشَّرِيدِ عَنْ أَبِيهِ، قَالَ اسْتَنْشَدَنِي رَسُولُ اللَّهِ صلى الله عليه وسلم ‏.‏ بِمِثْلِ حَدِيثِ إِبْرَاهِيمَ بْنِ مَيْسَرَةَ وَزَادَ قَالَ ‏
"‏ إِنْ كَادَ لَيُسْلِمُ ‏"‏ ‏.‏ وَفِي حَدِيثِ ابْنِ مَهْدِيٍّ قَالَ ‏"‏ فَلَقَدْ كَادَ يُسْلِمُ فِي شِعْرِهِ ‏"‏ ‏.‏
Reference : Sahih Muslim 5887In-book reference : Book 41, Hadith 2