And when he reached with him [the age of] exertion, he said, "O my son, indeed I have seen in a dream that I [must] sacrifice you, so see what you think." He said, "O my father, do as you are commanded. You will find me, if Allah wills, of the steadfast."

37:103 فَلَمَّا أَسْلَمَا وَتَلَّهُ لِلْجَبِينِ

And when they had both submitted and he put him down upon his forehead,