The Bible talks about using evil for good.



In Genesis 50:20, Joseph tells his brothers, "You meant Evil against me, but God used it for good."

Related Questions