Intentions he knew would come about in Peter when he created Peter and that would not have come about had he created Peter differently.
Okay.
God did not 'create' Peter. God 'created' Adam. God 'created' Eve. He did not 'create' you.. or I.. or Peter. Our parents 'created' us.
It was their sperm and egg that 'created' us. It was their raising us.. that created.. us. For your behavior is an act of free will.
God had nothing to do with the creation of Peter. Peter's motives are his alone.. given to him by free will. By the laws of nature, that God designed, he cannot create somebody differently.. if he had not created him at all! (He didn't 'create' murder, man did. He didn't 'create' bestiality, man did.)
You are an outspoken person, because your mother always told you 'Hold your tongue for no one.' So, you have always been the type to say what's on your mind. God didn't create you to speak your mind. Mommy did. So if you tell somebody the shirt they're wearing is ugly, why would God have anything to do with changing that? Instead, what you COULD have done to prevent hurt feelings, was to have not said nothing at all... and bit your tongue. See that is free will. God knows the outcome of both situations, that is what makes him 'all knowing'.
Why does God always have to be the blame for everything, when we ourselves have the power to make our own reality? You lead the horse to water, you can't make him drink it. You can teach your kids how to live life, but you can't live it for them.
God does not want Peter to kill John because he has said thou shall not kill. By Peter's act of free will, he could kill John, or could not. God's purpose for humankind was not to take one another lives. Therefore he hates the intention. But it's Peter's free will to choose.