Why did God have to test Abraham to see if he would sacrifice Isaac if He's omniscient and knows everything?
God didn't test Abraham to find out anything; He put Abraham to the test. He gave Abraham a chance to prove himself. God chose Abraham out of all the people...