Sahih Muslim, Book 41, Hadith 4 (Muslim 5829)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

The truest word uttered by a poet is this verse of Labid: "Behold! apart from Allah everything is vain," and Umayya b. Abu Salt was almost a Muslim.