I had. If I remember correctly, God gave the rainbow as a symbol of God’s promise that he would never wipe humanity out in a flood.
I don’t think that means he wouldn’t wipe humanity out in some other way, just not in a flood.
It’s also a sign of a covent.
Humans are breaking that covenent.