the messengers were sent to give people the glad news and warn them so that the human being would not have any objections against god after the coming of the messengers . god is majestic and allwise.
رسلا مبشرين ومنذرين لئلا يكون للناس على الله حجة بعد الرسل وكان الله عزيزا حكيما