Genesis 4:3-5

ISV(i) 3 Later, after a while, Cain brought an offering to the LORD from the fruit that he had harvested, 4 while Abel brought the best parts of some of the firstborn from his flock. The LORD looked favorably upon Abel and his offering, 5 but he did not look favorably upon Cain and his offering.
When Cain became very upset and depressed,