Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:33:36

It is not for a believing man or a believing woman, when Allah and His Messenger have decided a matter, that they should ˹thereafter˺ have any choice about their affair. And whoever disobeys Allah and His Messenger has certainly strayed into clear error.  

And it is not ˹fitting˺ for any believing man or believing woman, when God and His Messenger have decided on a matter, to have (read takūna or yakūna) a choice in their matter, in contravention of the decision of God and His Messenger. This ˹verse˺ was revealed regarding ‘Abd Allāh b. Jahsh and his sister Zaynab, whose hand the Prophet had asked for in marriage, but meaning on behalf of Zayd b. Hāritha. They were loathe to this ˹proposal˺ when they found out ˹that it was on the latter’s behalf˺, for they had thought that the Prophet (s) wanted to marry her himself. But afterwards they consented because of the ˹following part of the˺ verse: And whoever disobeys God and His Messenger has certainly strayed into manifest error. Thus the Prophet (s) gave her in marriage to Zayd. Then on one occasion he ˹the Prophet˺ caught sight of her and felt love for her, whereafter ˹when he realised that˺ Zayd lost his affection for her and so said to the Prophet (s), ‘I want to part with her’. But the Prophet said to him, ‘Retain your wife for yourself’, as God, exalted be He, says:
القرآن:٣٣:٣٦

وَمَا كَانَ لِمُؤْمِنٍ وَلَا مُؤْمِنَةٍ إِذَا قَضَى اللَّهُ وَرَسُولُهُ أَمْرًا أَنْ يَكُونَ لَهُمُ الْخِيَرَةُ مِنْ أَمْرِهِمْ ۗ وَمَنْ يَعْصِ اللَّهَ وَرَسُولَهُ فَقَدْ ضَلَّ ضَلَالًا مُبِينًا  

(وما كان لمؤمن ولا مؤمنة إذا قضي الله ورسوله أمرا أن تكون) بالتاء والياء (لهم الخيرة) أي الاختيار (من أمرهم) خلاف أمر الله ورسوله، نزلت في عبد الله بن جحش وأخته زينب خطبها النبي لزيد بن حارثة فكرها ذلك حين علما لظنهما قبل أن النبي ﷺ خطبها لنفسه ثم رضيا للآية (ومن يعص الله ورسوله فقد ضل ضلالا مبينا) بينا فزوجها النبي ﷺ لزيد ثم وقع بصره عليها بعد حين فوقع في نفسه حبها وفي نفس زيد كراهتها، ثم قال للنبي ﷺ أريد فراقها فقال: "أمسك عليك زوجك" كما قال تعالى: