Abraham 1:5,7 describes how Abraham’s fathers were responsible for his attempted sacrifice:
My fathers, having turned from their righteousness, and from the holy commandments which the Lord their God had given unto them, unto the worshiping of the gods of the heathen, utterly refused to hearken to my voice;
Therefore they turned their hearts to the sacrifice of the heathen in offering up their children unto these dumb idols, and hearkened not unto my voice, but endeavored to take away my life by the hand of the priest of Elkenah. The priest of Elkenah was also the priest of Pharaoh.
Jeff Lindsay notes how many other texts also make this point:
Where would Joseph Smith have found out about these traditions?