I'm not sure whether the Qur'an asked Abraham to sacrifice his son, other than Abraham (SA) had a dream / vision and wasn't quite sure
This wasn't merely a dream/vision but a commandment from God as we can see in the sons reply.... "O my father, do as you are commanded...."
Why would he ask his son if he knew it was an INSTRUCTION from Allah (swt) We know that the Quran, among many things, has come also to correct the errors found in the previous scriptures. While in the Bible he does not consult with his son, he instead lies that God would provide a lamb when his intention was to sacrifice him. The Qur'an corrects these errors and also shows us that both father and son were submissive.
...and where does the Quran say the dream was from Allah? In verse 37:104-105 "We called to him, "O Abraham, You have fulfilled the vision." Indeed, We thus reward the doers of good" and also in 2:124 “And (remember) when his (Abraham’s) Lord tried Abraham with (various) commandments, to which he proved true...”
Also ...the logic you have stated, in my personal opinion is no different from asking if God had a plan for Adam's progeny anyway, why did he have to place a tree in the way, so that they could sin first? I do not think that is anywhere near the same thing. Lets try again....God tells Abraham that he will have a son called Isaac, and after, Isaac would have a son called Jacob. Now this is not just a promise but a statement from God of what is going to happen. Abraham and any believer would know that this would happen no matter what...for Gods word is true. Now if Abraham believed this and later God tells him to kill Isaac....Abraham would be like "but wait, You said Isaac was going to father Jacob...how can that be if I kill him?" Now this would indeed be untrustworthy and deceitful of God astagfurllah. This not being an attribute of God, Abraham would never have worshiped Him.
For the case of Adam and the tree, God never lied to them. He stated ..."do not approach this tree, lest you be among the wrongdoers." (Unlike in the Bible by the way.)