Genesis 4: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.

Daniel 9:14

Therefore hath YHVH watched upon the evil, and brought it upon us: for YHVH our God is righteous in all his works which he doeth: for we obeyed not his voice.