There is a huge difference between the Quran and Torah in the story of Abraham negotiating for the city of Sodom.
In the Torah. Abraham is about to step forward and boldly remind God that He has bound Himself to “do what is just.” God listens; the two of them, a mortal and the “Judge of All the Earth,” negotiate. The reader learns that mortals can boldly remind God that He has bound Himself to “do what is just.” God is magnified in Abraham’s eyes and heart because God is approachable when Abraham boldly reminds Him of his perfect judgments.
Not so in the Islamic version. In the Qur’an, Allah is unapproachable and tells Abraham to “desist from this” because “an irreversible punishment shall surely smite them.” Here the Bible account is contrasted to the one in the Qur’an:
Torah's Abraham is restless and argumentative, sparring with The Lord for greater justice.
Quran's Ibrahim is wise and full of humility, putting his trust in The Lord's grand plan.