Anas bin Malik reported,

Umar said, "I agreed with Allah on three matters," or he said, "My Lord agreed with me on three matters.""I said, 'Messenger of Allah, what if we took the station of Ibrahim as a place of prayer?'And I said, 'Messenger of Allah, both the righteous and the wicked enter upon you. What if you commanded the Mothers of the Believers to observe the veil?' So Allah revealed the verse of the veil.And word reached me that the Prophet ﷺ had reproached some of his wives, so I went in to see them and said, 'Either you stop, or Allah will give His Messenger ﷺ better wives than you in exchange.' I went on until I came to one of his wives, who said, 'Umar, does the Messenger of Allah ﷺ not have enough in himself to admonish his wives, that you must admonish them too?' So Allah revealed, "It may be that his Lord, if he divorces you, will give him in your place wives better than you, submissive to Allah" [Tahrim 66:5], to the end of the verse."Ibn Abu Maryam said, Yahya bin Ayub informed us, Humayd narrated to me, I heard Anas report from Umar.

Bukhari 4483

Sahih

حدثنا مسدد عن يحيى بن سعيد عن حميد

عن أنس قال

قال عمر وافقت الله في ثلاث أو وافقني ربي في ثلاث قلت يا رسول الله لو اتخذت مقام إبراهيم مصلى وقلت يا رسول الله يدخل عليك البر والفاجر فلو أمرت أمهات المؤمنين بالحجاب فأنزل الله آية الحجاب قال وبلغني معاتبة النبي ﷺ بعض نسائه فدخلت عليهن قلت إن انتهيتن أو ليبدلن الله رسوله ﷺ خيرا منكن حتى أتيت إحدى نسائه قالت يا عمر أما في رسول الله ﷺ ما يعظ نساءه حتى تعظهن أنت فأنزل الله {عسى ربه إن طلقكن أن يبدله أزواجا خيرا منكن مسلمات} الآية وقال ابن أبي مريم أخبرنا يحيى بن أيوب حدثني حميد سمعت أنسا عن عمر

البخاري 4483صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "And take the standing place of Ibrahim as a place of prayer"
Numbering
Darussalam 4483
Bukhari 4483