Jasher 2:29

And the Lord requited Cain's evil according to his wickedness, which he had done to his brother Abel, according to the word of the Lord which he had spoken.