In terms of God asking Abraham to sacrifice Isaac, God did nothing wrong. It was a test for Abraham and a lesson for us.
To Abraham, I'm sure it was confusing and even horrifying.....but as the book of Hebrews says, Abraham had absolute faith in God for his promises and he knew that God would raise Isaac from the dead if he was slain. Abraham believed God would be faithful to his word and promises.
That's UBER faith. God asking him to kill his son that was promised to bring forth a nation and a people that could not be numbered - and Abraham, having no discussion of raising Isaac from the dead but believing it in his heart.
Hebrews 11:19 - "He [Abraham] considered that God was able even to raise him from the dead, from which, figuratively speaking, he did receive him back."