One of the most important duties of Allah's messengers was to warn people and to make them fear His punishment and Hell.
The prophets are a means by which people come to fear Allah and adopt high morality, and, for some of them, to live in Paradise in the hereafter. The Prophet (saas) also warned people about the torments of Hell and tried to prevent them from wickedness, disbelief and atheism.
Some verses concerning the Prophet (saas)'s warnings about Hell read: When Our Signs are recited to them-Clear Signs-you can detect denial in the faces of those who disbelieve. They all but assault those who recite Our Signs to them! Say: "Shall I inform you of something worse than that? The Fire which Allah has promised those who disbelieve.
What an evil destination!" (Surat al-Hajj: 72) "[I have for you] only notification from Allah and His Messages. As for him who disobeys Allah and His Messenger, he will have the Fire of Hell, remaining in it timelessly, for ever and ever." (Surat al-Jinn: 23)
The Prophet (saas) described the torments of Hell in detail for those who believed such things far fetched, and, as revealed in the Qur'an, explained the lot of those in Hell and how people would beg to be saved from its torments, extending every effort to cause them to avoid it. ******