Sayyiduna Umar bin al-Hakam (may Allah be pleased with him) said: I came to the Messenger of Allah (peace and blessings be upon him) and said: O Messenger of Allah! A slave girl of mine used to graze my goats. One day a goat went missing. I asked her about it, and she said: A wolf ate it. I became angry and slapped her on the face. I owe the freeing of a slave; shall I free her? He (peace and blessings be upon him) asked her: "Where is Allah?" She said: In the heaven. He (peace and blessings be upon him) asked: "Who am I?" She said: You are the Messenger of Allah. He (peace and blessings be upon him) said: "Free her."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 19984
Sayyiduna Mu'awiyah bin al-Hakam al-Sulami (may Allah be pleased with him) related the hadith about (taking) omens and about sneezing in the prayer, and said: Then I looked at my flock of goats, which a slave girl of mine used to graze near Uhud or al-Jawwaniyyah. A wolf had taken a goat. I am a son of Adam too; just as they get angry, I got angry. I gave her a slap, then I came to the Messenger of Allah (peace and blessings be upon him) and told the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) regarded it as a grave matter. I said: O Messenger of Allah! Shall I free her? He (peace and blessings be upon him) said: "Bring her to me." He said: I brought her to him. He (peace and blessings be upon him) said: "Where is Allah?" She said: In the heaven. He (peace and blessings be upon him) asked: "Who am I?" She said: You are the Messenger of Allah. He (peace and blessings be upon him) said: "Free her, for she is a believer."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 19985
Ubaydullah bin Abdullah bin Utbah (may Allah have mercy on him) said: A man from the Ansar came to the Prophet (peace and blessings be upon him) with his black slave girl and said: O Messenger of Allah! I owe the freeing of a believing slave; shall I free her? If you consider her a believer, I will free her. He (peace and blessings be upon him) asked: "Do you bear witness that there is no god but Allah?" She said: Yes. He (peace and blessings be upon him) asked: "Do you bear witness that Muhammad (peace and blessings be upon him) is the Messenger of Allah?" She said: Yes. He (peace and blessings be upon him) asked: "Do you believe in being raised after death?" She said: Yes. He (peace and blessings be upon him) said: "Free her."
This is mursal.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 19986