Surah At-Tahrim 66:3
وَإِذْ أَسَرَّ ٱلنَّبِىُّ إِلَىٰ بَعْضِ أَزْوَٰجِهِۦ حَدِيثًا فَلَمَّا نَبَّأَتْ بِهِۦ وَأَظْهَرَهُ ٱللَّهُ عَلَيْهِ عَرَّفَ بَعْضَهُۥ وَأَعْرَضَ عَنۢ بَعْضٍ ۖ فَلَمَّا نَبَّأَهَا بِهِۦ قَالَتْ مَنْ أَنۢبَأَكَ هَـٰذَا ۖ قَالَ نَبَّأَنِىَ ٱلْعَلِيمُ ٱلْخَبِيرُ
And [remember] when the Prophet confided to one of his wives a statement; and when she informed [another] of it and Allāh showed it to him, he made known part of it and ignored a part. And when he informed her about it, she said, "Who told you this?" He said, "I was informed by the Knowing, the Aware."
Translation: Saheeh International
Tafsir
And mention when the Prophet confided to one of his wives namely Hafsa a certain matter which was his prohibition of Māriya telling her ‘Do not reveal it!’; but when she divulged it to ‘Ā’isha reckoning there to be no blame in doing such a thing and God apprised him He informed him of it of what had been divulged he …
Excerpt from Tafsir al-Jalalayn, commentary on 66:3, via Quran.com. The reader has the full commentary and 9 more tafsirs.