Job 20:14 (ESV)

14 yet his food is turned in his stomach; it is the venom of cobras within him.

Although sin seems desirable to the wicked, it will become the venom by which he dies. The implication is that Job’s misery is his own fault: he has poisoned himself with his sin.