Sahih al-Bukhari 2530
Muhammad bin Abdullah bin Numair told us. He narrated from Muhammad bin Bishr, Muhammad bin Bishr from Isma'il, Isma'il from Qais, Qais from Hazrat Abu Hurairah (ra), that when he came with the intention of becoming a Muslim, and his slave was also with him, each of them lost the way and became separated from his companion. Then the slave came after this, while Hazrat Abu Hurairah (ra) was at that time sitting with the Prophet (saw). The Prophet (saw) said: “Abu Hurairah, here, your slave has come to you.” Hazrat Abu Hurairah (ra) said: Listen! I make you witness that he is free. When Hazrat Abu Hurairah (ra) arrived (in Medina), he had composed these verses: Alas, that night, how long and how painful it was! Yes, but it delivered me from the abode of disbelief.
AI-translated by Islam-Today