وَإِذْ تَقُولُ لِلَّذِىٓ أَنْعَمَ ٱللَّهُ عَلَيْهِ وَأَنْعَمْتَ عَلَيْهِ أَمْسِكْ عَلَيْكَ زَوْجَكَ وَٱتَّقِ ٱللَّهَ وَتُخْفِى فِى نَفْسِكَ مَا ٱللَّهُ مُبْدِيهِ وَتَخْشَى ٱلنَّاسَ وَٱللَّهُ أَحَقُّ أَن تَخْشَىٰهُ ۖ فَلَمَّا قَضَىٰ زَيْدٌ مِّنْهَا وَطَرًا زَوَّجْنَـٰكَهَا لِكَىْ لَا يَكُونَ عَلَى ٱلْمُؤْمِنِينَ حَرَجٌ فِىٓ أَزْوَٰجِ أَدْعِيَآئِهِمْ إِذَا قَضَوْا۟ مِنْهُنَّ وَطَرًا ۚ وَكَانَ أَمْرُ ٱللَّهِ مَفْعُولًا
wa-idh taqūlu lilladhī anʿama l-lahu ʿalayhi wa-anʿamta ʿalayhi amsik ʿalayka zawjaka wa-ittaqi l-laha watukh'fī fī nafsika mā l-lahu mub'dīhi watakhshā l-nāsa wal-lahu aḥaqqu an takhshāhu falammā qaḍā zaydun min'hā waṭaran zawwajnākahā likay lā yakūna ʿalā l-mu'minīna ḥarajun fī azwāji adʿiyāihim idhā qaḍaw min'hunna waṭaran wakāna amru l-lahi mafʿūlan
And [remember, O Muḥammad], when you said to the one on whom Allāh bestowed favor and you bestowed favor, "Keep your wife and fear Allāh," while you concealed within yourself that which Allāh is to disclose. And you feared the people, while Allāh has more right that you fear Him. So when Zayd had no longer any need for her, We married her to you in order that there not be upon the believers any discomfort [i.e., guilt] concerning the wives of their claimed [i.e., adopted] sons when they no longer have need of them. And ever is the command [i.e., decree] of Allāh accomplished.
— Saheeh International
When you [Prophet] said to the man who had been favoured by God and by you, ‘Keep your wife and be mindful of God,’ you hid in your heart what God would later reveal: you were afraid of people, but it is more fitting that you fear God. When Zayd no longer wanted her, We gave her to you in marriage so that there might be no fault in believers marrying the wives of their adopted sons after they no longer wanted them. God’s command must be carried out:
— M. A. S. Abdel Haleem
And (remember) when you said to him (Zaid bin Hârithah رضي الله عنه - the freed-slave of the Prophet صلى الله عليه وسلم) on whom Allâh has bestowed Grace (by guiding him to Islâm) and you (O Muhammad صلى الله عليه وسلم too) have done favour (by manumitting him): "Keep your wife to yourself, and fear Allâh." But you did hide in yourself (i.e. what Allâh has already made known to you that He will give her to you in marriage) that which Allâh will make manifest, you did fear the people (i.e., their saying that Muhammad صلى الله عليه وسلم married the divorced wife of his manumitted slave) whereas Allâh had a better right that you should fear Him. So when Zaid had accomplished his desire from her (i.e. divorced her), We gave her to you in marriage, so that (in future) there may be no difficulty to the believers in respect of (the marriage of) the wives of their adopted sons when the latter have no desire to keep them (i.e. they have divorced them). And Allâh’s Command must be fulfilled.
— Muhammad Muhsin Khan & Muhammad Taqi-ud-Din al-Hilali

