It is only out of context if you believe that Abraham was a Muslim praying to Allah. I do not.
Abraham and Moses aren't real, anymore than Jesus is. I do appreciate their point, of 1400 years ago, that Abraham wasn't a Zoroastrian nor a Byzantine. Abraham, if a more realistic fictional character ... would be praying to El Elyon etc as named in Genesis. Those are Canaanite gods BTW. In the extra-Biblical legends, and I credit them as fiction as good as Genesis ... Abraham originally was a townie ... who revolted against his idol making father, and fled to the desert to escape an evil ruler (Nimrod) (sound familiar?). In the desert he found some bedouin, and joined up with them.
Did you hear about the one about teen Abraham and Terah, his idol making father? Abraham realized that his father was full of shit. That it was fraud to make gods of statues. But the money was too good for Terah. So like the teen he was, knowing himself far smarter than his dad, Abraham decided to make a statement. Terah had to go someplace, and left Abraham in charge of the idol shop. When Terah came back ... disaster! All the idols had been smashed with a hammer, except for one, whose outstretched hand, held a hammer. Terah was mad, and accused Abraham. Abraham replied, can't you see ... this god over here was jealous, and smashed the other idols.
And that is a hell of a good story, that should have made it into Genesis.