Ahab went home sulking and infuriated because Naboth from Jezreel had said, “I will not give you my forefathers' inheritance.” He went to bed, wouldn't look at anyone, and refused to eat.
Then the Lord told Jonah, “You're concerned about a plant which you did nothing about, and you didn't make it grow. It came up overnight and died overnight.
Then as the sun came up the Lord arranged for a scorching east wind to blow, and the sun beat down on Jonah's head so that he became faint and wanted to die. “I'd rather die than live!” he said.
The kind of sorrow God wants us to have makes us change our minds and brings salvation. This kind of sorrow leaves no sense of regret, but worldly sorrow brings death.