ʿUrwa bin Az-Zubair, Saʿid bin Al-Musaiyab, 'Al-Qama bin Waqqas and 'Ubaidullah bin ʿAbdullah related the narration of ʿAisha, the wife the Prophet, when the slanderers had said about her what they had said and Allah later declared her innocence. Each of them related a part of the narration (wherein) the Prophet ﷺ said (to ʿAisha). "If you are innocent, then Allah will declare your innocence: but if you have committed a sin, then ask for Allah's Forgiveness and repent to him." ʿAisha said, "By Allah, I find no example for my case except that of Joseph's father (when he said), 'So (for me) patience is most fitting.' " Then Allah revealed the ten Verses:-- "Verily those who spread the slander are a gang amongst you.." (24.11)
حِينَ قَالَ لَهَا أَهْلُ الإِفْكِ مَا قَالُوا فَبَرَّأَهَا اللَّهُ كُلٌّ حَدَّثَنِي طَائِفَةً مِنَ الْحَدِيثِ قَالَ النَّبِيُّ ﷺ إِنْ كُنْتِ بَرِيئَةً فَسَيُبَرِّئُكِ اللَّهُ وَإِنْ كُنْتِ أَلْمَمْتِ بِذَنْبٍ فَاسْتَغْفِرِي اللَّهَ وَتُوبِي إِلَيْهِ قُلْتُ إِنِّي وَاللَّهِ لاَ أَجِدُ مَثَلاً إِلاَّ أَبَا يُوسُفَ {فَصَبْرٌ جَمِيلٌ وَاللَّهُ الْمُسْتَعَانُ عَلَى مَا تَصِفُونَ} وَأَنْزَلَ اللَّهُ {إِنَّ الَّذِينَ جَاءُوا بِالإِفْكِ} الْعَشْرَ الآيَاتِ