4:165
رُّسُلًا مُّبَشِّرِينَ وَمُنذِرِينَ لِئَلَّا يَكُونَ لِلنَّاسِ عَلَى ٱللَّهِ حُجَّةٌۢ بَعْدَ ٱلرُّسُلِ ۚ وَكَانَ ٱللَّهُ عَزِيزًا حَكِيمًا
rusulan mubashirīna wamundhirīna li-allā yakūna lilnnāsi ʿalā l-lahi ḥujjatun baʿda l-rusuli wakāna l-lahu ʿazīzan ḥakīman
They were messengers bearing good news and warning, so that mankind would have no excuse before God, once the messengers had been sent: God is almighty and all wise.
Messengers as bearers of good news as well as of warning in order that mankind should have no plea against Allâh after the (coming of) Messengers. And Allâh is Ever All-Powerful, All-Wise.