Genesis 4:5-7 King James Version (KJV)
5 But unto Cain and to his offering he had not respect. And Cain was very wroth, and his countenance fell.
6 And the Lord said unto Cain, Why art thou wroth? and why is thy countenance fallen?
7 If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto thee shall be his desire, and thou shalt rule over him.