وَإِذْ تَقُولُ لِلَّذِىٓ أَنْعَمَ ٱللَّهُ عَلَيْهِ وَأَنْعَمْتَ عَلَيْهِ أَمْسِكْ عَلَيْكَ زَوْجَكَ وَٱتَّقِ ٱللَّهَ وَتُخْفِى فِى نَفْسِكَ مَا ٱللَّهُ مُبْدِيهِ وَتَخْشَى ٱلنَّاسَ وَٱللَّهُ أَحَقُّ أَن تَخْشَىٰهُ ۖ فَلَمَّا قَضَىٰ زَيْدٌ مِّنْهَا وَطَرًا زَوَّجْنَـٰكَهَا لِكَىْ لَا يَكُونَ عَلَى ٱلْمُؤْمِنِينَ حَرَجٌ فِىٓ أَزْوَٰجِ أَدْعِيَآئِهِمْ إِذَا قَضَوْا۟ مِنْهُنَّ وَطَرًا ۚ وَكَانَ أَمْرُ ٱللَّهِ مَفْعُولًا ٣٧
And [remember, O Muḥammad], when you said to the one on whom Allāh bestowed favor and you bestowed favor,[1198] "Keep your wife and fear Allāh," while you concealed within yourself that which Allāh is to disclose.[1199] And you feared the people,[1200] while Allāh has more right that you fear Him.[1201] 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.
Translator's notes
[1198] Referring to the Prophet's freed slave, Zayd bin Ḥārithah. [1199] i.e., Allāh's command to the Prophet (ﷺ) to marry Zaynab after Zayd divorced her. This was to demonstrate that a man may marry a woman formerly married to his adopted son. [1200] i.e., feared their saying that the Prophet (ﷺ) had married the (former) wife of his son (which is prohibited by Allāh in the case of a true, begotten son). [1201] By making known His command.
Saheeh International · QuranEnc v1.1.2
Another translation: Al-Hilali & Muhsin Khan · QuranEnc v1.1.2
37. 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.