If He didn't already know what Abraham would do, how would God's actions have been different? And how do you know this?
For instance, Abraham might have decided not to climb the mountain, even, in which case, we would never have known whether or not there was a ram caught in the thicket...