God wanted to show that Abram would obey God in whatever he asked. He did not want Abraham to actually kill Isaac. However, Abraham did not yet know that he would not have to kill Isaac.