Al-Ahzaab • EN-TAFSIR-IBN-ABBAS
﴿ مَّا كَانَ عَلَى ٱلنَّبِىِّ مِنْ حَرَجٍۢ فِيمَا فَرَضَ ٱللَّهُ لَهُۥ ۖ سُنَّةَ ٱللَّهِ فِى ٱلَّذِينَ خَلَوْا۟ مِن قَبْلُ ۚ وَكَانَ أَمْرُ ٱللَّهِ قَدَرًۭا مَّقْدُورًا ﴾
“[Hence,] no blame whatever attaches to the Prophet for [having done] what God has ordained for him. [Indeed, such was] God’s way with those that have passed away aforetime and [remember that] God’s will is always destiny absolute-;”
(There is no reproach) there is no sin or offence (for the Prophet in that which Allah maketh his due) in the dispensation Allah makes for him, by making him marry. (That was Allah's way) thus was Allah's decree (with those who passed away of old) before Muhammad (pbuh); the reference here is to David and his marriage to the wife of Uriya; and it is also said that this refers to the marriage of Solomon with Balqis (and the commandment of Allah is certain destiny) the decree of Allah must necessarily take place.