Mua’wiyah ibn al-Hakam reported: I said, “O Messenger of Allah, I have a servant-girl whom I slapped.” That upset the Messenger of Allah, peace and blessings be upon him. I said to him, “Shall I emancipate her?” The Prophet said, “Bring her to me.” Then, she was brought and the Prophet said, “Where is Allah?” She said, “In heaven.” The Prophet said, “Who am I?” She said, “You are the Messenger of Allah.” The Prophet said, “Free her, for she is a believer.”
Source: Ṣaḥīḥ Muslim 537
Grade: Sahih (authentic) according to Muslim
عَنْ مُعَاوِيَةَ بْنِ الْحَكَمِ السُّلَمِيِّ قَالَ قُلْتُ يَا رَسُولَ اللَّهِ جَارِيَةٌ لِي صَكَكْتُهَا صَكَّةً فَعَظَّمَ ذَلِكَ عَلَيَّ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقُلْتُ أَفَلَا أُعْتِقُهَا قَالَ ائْتِنِي بِهَا قَالَ فَجِئْتُ بِهَا قَالَ أَيْنَ اللَّهُ قَالَتْ فِي السَّمَاءِ قَالَ مَنْ أَنَا قَالَتْ أَنْتَ رَسُولُ اللَّهِ قَالَ أَعْتِقْهَا فَإِنَّهَا مُؤْمِنَةٌ
537 صحيح مسلم كتاب المساجد ومواضع الصلاة باب تحريم الكلام في الصلاة ونسخ ما كان من إباحته