The mission of the messengers is to announce the good tidings to the people, warn them of punishment, and explain the way path to them. This is their duty and is the basis for the Messages of all the Messengers and Prophets.
(… لِئَلَّا يَكُونَ لِلنَّاسِ عَلَى اللَّهِ حُجَّةٌ بَعْدَ الرُّسُلِ …) (…so that mankind will have no argument against Allah after the messengers …): No indictment except according to a Shar’i text.