Sunan Abu Dawud #3282
Oaths and Vows (Kitab Al-Aiman Wa Al-Nudhur) 22:41
Narrated Mu'awiyah b. al-Hakam al-Sulami:
I said: Messenger of Allah, I have a slave girl whom I slapped. This grieved the Messenger of Allah (ﷺ). I said to him: Should I not emancipate her? He said: Bring her to me. He said: Then I brought her. He asked: Where is Allah ? She replied: In the heaven. He said: Who am I ? She replied: You are the Messenger of Allah. He said: Emancipate her, she is a believer.