Muawiya bin Hakam reported,

I said, "Messenger of Allah, I have a slave girl whom I struck with a blow."The Messenger of Allah ﷺ regarded that as a serious matter, so I said, "Should I not free her?"He said, "Bring her to me."So I brought her to him.He asked her, "Where is Allah?"She replied, "In the heavens."He asked, "Who am I?"She answered, "You are the Messenger of Allah."He said, "Free her, for she is a believer."

Abu Dawud 3282

Sahih

حدثنا مسدد حدثنا يحيى عن الحجاج الصواف حدثني يحيى بن أبي كثير عن هلال بن أبي ميمونة عن عطاء بن يسار

عن معاوية بن الحكم السلمي قال

قلت يا رسول الله جارية لي صككتها صكة فعظم ذلك علي رسول الله ﷺ فقلت أفلا أعتقها قال ائتني بها قال فجئت بها قال أين الله قالت في السماء قال من أنا قالت أنت رسول الله قال أعتقها فإنها مؤمنة

أبو داود 3282صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Oaths and vows
Chapter
Believing Raqaba
Numbering
Darussalam 3282
Abu Dawud 3282