It is not a contradiction when the Quran mentioned the sun set in a muddy pool because the word “sunset” was never a scientific word as the sun in reality never set or rise. The word sunset or sunrise were only use as a metaphor.
S18:86 Until, when he reached the setting of the sun, he found it set in a spring of murky water: Near it he found a people: We said: “O Zul-Qarnain! (thou hast authority,) either to punish them, or to treat them with kindness.”
S18:90 Until, when he came to the rising of the sun, he found it rising on a people for whom We had provided no covering protection against the sun.
The above metaphors in the sun setting and rising indicate the man Zul-Qarnain travel to furthest or deep west until the sun sink into darkness and then went to the furthest or deep east where the sun was scorching!
The sun in the Qur’an in reality never set or rise but the word “sunset” and “sunrise” were used as a metaphors.
However, it is in the Holy Bible the sun was not use as a mataphor but made real by God to stand still for one day.
The sun and the moon stood still the whole day in the Bible –
Joshua 10:12 Then spake Joshua to the LORD in the day when the LORD delivered up the Amorites before the children of Israel, and he said in the sight of Israel, Sun, stand thou still upon Gibeon; and thou, Moon, in the valley of Ajalon. And the sun stood still, and the moon stayed, until the people had avenged themselves upon their enemies. Is not this written in the book of Jasher? So the sun stood still in the midst of heaven, and hasted not to go down about a whole day.
The sun go down over the prophets –
Micah 3:6 Therefore night shall be unto you, that ye shall not have a vision; and it shall be dark unto you, that ye shall not divine; and the sun shall go down over the prophets, and the day shall be dark over them.
It is in the Bible that there is a scientific error where the sun and the moon stood still and not the Qur’an as sunset and sunrise only act as metaphors.