Noah warns the wicked that unless they repent, God will destroy them with a flood. Despite his warning, the people “hearkened not.”

Moses 8:23–24

23 And it came to pass that Noah continued his preaching unto the people, saying: Hearken, and give heed unto my words;
24 Believe and repent of your sins and be baptized in the name of Jesus Christ, the Son of God, even as our fathers, and ye shall receive the Holy Ghost, that ye may have all things made manifest; and if ye do not this, the floods will come in upon you; nevertheless they hearkened not.

President John Taylor said:

“Let me ask, what did the Lord do before He sent the Flood? He sent Noah . . . as a preacher of righteousness . . . among the people, and [he] prophesied to them that unless they repented, judgment would overtake them; that God would overwhelm the earth with a flood and destroy the inhabitants thereof.”

(“Discourse,” Deseret News, Nov. 7, 1883, 658.)