The Messenger of Allah ﷺ came to her when Allah commanded him to give his wives the choice. The Messenger of Allah ﷺ began with me and said, "I am going to mention a matter to you, and there is no need for you to hurry until you consult your parents." He knew that my parents would never have ordered me to part from him.She said, then he recited, "Allah has said, 'O Prophet, say to your wives'" [Ahzab 33:28–29], reciting the two verses in full.I said to him, "About which part of this should I consult my parents? I choose Allah, His Messenger, and the abode of the Hereafter."
أن رسول الله ﷺ جاءها حين أمره الله أن يخير أزواجه، فبدأ بي رسول الله ﷺ، فقال: إني ذاكر لك أمرا فلا عليك أن لا تستعجلي حتى تستأمري أبويك، وقد علم أن أبوي لم يكونا يأمراني بفراقه. قالت: ثم قال: إن الله قال: {يأيهاالنبي قل لأزوجك} إلى تمام الآيتين، فقلت له: ففي أي هذا أستأمر أبوي؟ فإني أريد الله ورسوله والدار الآخرة.
Bukhari related it in the tafsir (4785), and Muslim in divorce (1475), both through Ibn Shihab Zuhri, who said, Abu Salama bin Abdul-Rahman told me that Ayesha, the wife of the Prophet ﷺ, said, and then he mentioned it. The wording given here is Bukhari's, and Muslim's wording is similar.