Genesis 4:4-7
4 Abel also brought of the firstborn of his flock and of their fat. And the Lord respected Abel and his offering, 5 but He did not respect Cain and his offering. And Cain was very angry, and his countenance fell.
6 So the Lord said to Cain, “Why are you angry? And why has your countenance fallen? 7 If you do well, will you not be accepted? And if you do not do well, sin lies at the door. And its desire is for you, but you should rule over it.”