When Lamech had lived 182 years, he fathered a son and called his name Noah, saying, “Out of the ground that the LORD has cursed this one shall bring us relief from our work and from the painful toil of our hands.”
When Adam and Eve fell, they were promised that the offspring of the woman would crush the serpent’s head (Genesis 3:15). Perhaps Lamech had that prophecy in mind when he spoke his prophecy over Noah. Perhaps Lamech was just tired of working so hard to support his family and relate to God. Lamech wanted to rest.
Noah was not the promised Messiah, but he was a savior of humanity from the utter destruction of a future flood.
God needed a rest too–from the wickedness of humanity. More to come in Genesis chapter 6.