 Judas said, hey, why kill him? After all, he's our own flesh and blood. Let's just sell him into slavery. And so God saved Joseph's life. And when he got down in Egypt, the devil said, I'll get him on a moral charge. Let's tempt him through Potiphar's wife. But Joseph trusted God and knew it was sin and didn't do it.