Sahih al-Bukhari 439
ʿĀʾishah (r.a) recounted that a particular Arab tribe had a black female slave whom they emancipated, and she remained in their company. She said: ‘One of their girls, who was wearing a red leather bejewelled necklace went out. She placed it somewhere or it fell off her and a passing kite mistook it for meat and carried it away. They looked for it but could not find it, so they accused me of [taking] it. They began to search me and even searched my private parts. By Allāh! I was still standing with them when the kite flew over and dropped it, and it fell down between them.’ She [ʿĀʾishah (r.a)] relates that she said: ‘This is what you accused me of and you claimed [that I had taken it] whereas I was innocent. Here it is.’
ʿĀʾishah (r.a) relates: ‘She had come to the Messenger of Allāh (saw) and embraced Islām. She had a tent or a room with a low roof in the mosque. She used to come and converse with me. Whenever she sat with me, she would recite [the couplet]: “The day of the necklace is among the wonders of our Lord; surely, He rescued me from the town of disbelief”.’ ʿĀʾishah (r.a) said: ‘I asked her: “What is the matter with you that whenever you sit with me, you always say this”? Then, she narrated this incident.’
Translation: Ahmadiyya Muslim Jamaat
Book 57: Sleeping of a woman in the mosque (and residing in it)