Surah 18: Al-Kahf
The Holy Qur’an, English translation by Sir Muhammad Zafrulla Khan, Part 8
We established him in the earth and provided him with the means of achieving everything.
He followed a certain way
And when he arrived at the place of the setting of the sun, he discovered as if it was setting in an expanse of murky water, and found in its vicinity a people. We said to him: Dhul Qarnain, you may punish them or treat them with kindness.
He said: We shall certainly punish him who does wrong; then shall he be brought back to his Lord, Who will chastise him with a grievous chastisement.
He who believes and works righteousness will have a good reward in the Hereafter, and We shall also facilitate everything for him by Our command.
Then he followed another way,
And when he arrived at the place of the rising of the sun, he found it rising on a people for whom We had made no shelter against it.
Thus indeed it was, and We have securely preserved all knowledge concerning him.
Then he followed still another way.
When he reached between the two barriers, he found on either side a people who could scarcely understand what he said.
They said to him: Dhul Qarnain, verily, Gog and Magog are creating disorder in the land. Shall we appoint a tribute to be paid to thee on condition that thou set up a barrier between them and us?
He said to them: The resources which my Lord has made available to me for such purposes are far better than those of my enemies, but you may help me according to your means and I will set up a rampart between them and you.