There is a comparison between God and a potter on the one hand, and humanity and pottery on the other, in both testaments of the Christian Bible.
The analogy is not apt. Pots do not feel pain. And as human beings, we rarely agree that the simple act of creating means that the one who did so has unlimited rights to torment the work of his or her hands.
I mention this because I have had students reflecting on the story of Abraham almost sacrificing Isaac, and am not persuaded that simply positing that God is the Creator of humankind solves the moral problems inherent in that story.