I agreed with my Lord, may He be glorified and exalted, in three matters - or my Lord agreed with me in three matters, I said: O Messenger of Allah, why don't you take the Maqarn of Ibraheem as a place of prayer? Then Allah revealed the verse: ʿAnd take you (people) the Maqam (place) of Ibraheem (Abraham) [or the stone on which Ibraheem (Abraham) stood while he was building the Ka'bah) as a place of prayerʿ (al Baqarah 2:125). And I said: Why don't you tell the Mothers of the Believers to observe hijab, for both righteous people and evildoers enter upon you? Then the verse of hijab was revealed. And I heard something about the Mothers of the Believers, so I talked to them and told them: You should stop bothering the Messenger of Allah ﷺ , or Allah will replace you with wives who are better than you and are Muslims. Then I came to one of the Mothers of the Believers and she said: O 'Umar, is it the case that the Messenger of Allah ﷺ cannot admonish his wives so that you come and admonish them? So I stopped, then Allah, may He be glorified and exalted, revealed the verse: “It may be if he divorced you (all) that his Lord will give him instead of you, wives better than you Muslims (who submit to Allah), believers, obedient (to Allah)...ʿ [at-Tahreerm 66:5) (Using translation from Aḥmad 160)
قَالَ عُمَرُ بْنُ الْخَطَّابِ ؓ وَافَقَنِي رَبِّي فِي ثَلَاثٍ قُلْتُ لَوِ اتَّخَذْنَا مِنْ مَقَامِ إِبْرَاهِيمَ مُصَلًّى فَأَنْزَلَ اللهُ ﷻ {وَاتَّخِذُوا مِنْ مَقَامِ إِبْرَاهِيمَ مُصَلًّى} [البقرة 125] وَقُلْتُ يَا رَسُولَ اللهِ يَدْخُلُ عَلَيْكَ الْبَرُّ وَالْفَاجِرُ فَلَوْ حَجَبْتَ أُمَّهَاتِ الْمُؤْمِنِينَ فَأَنْزَلَ اللهُ ﷻ آيَةَ الْحِجَابِ قَالَ وَبَلَغَنِي شَيْءٌ كَانَ بَيْنَ أُمَّهَاتِ الْمُؤْمِنِينَ وَبَيْنَ النَّبِيِّ ﷺ فَاسْتَقْرَيْتُهُنَّ أَقُولُ لَتَكُفُّنَّ عَنْ رَسُولِ اللهِ ﷺ أَوْ لَيُبْدِلَنَّهُ اللهُ أَزْوَاجًا خَيْرًا مِنْكُنَّ حَتَّى أَتَيْتُ عَلَى آخِرِ أُمَّهَاتِ الْمُؤْمِنِينَ فَقَالَتْ أُمُّ سَلَمَةَ يَا عُمَرُ أَمَا فِي رَسُولِ اللهِ ﷺ مَا يَعِظُ نِسَاءَهُ حَتَّى تَعِظَهُنَّ؟ فَأَمْسَكْتُ فَأَنْزَلَ اللهُ ﷻ {عَسَى رَبُّهُ إِنْ طَلَّقَكُنَّ أَنْ يُبْدِلَهُ أَزْوَاجًا خَيْرًا مِنْكُنَّ} [التحريم 5] الْآيَةَ