Reference: Surah Al-Kahf – Quran, Chapter 18, Verse 17: Arabic and English Translation
17. And you might have seen the sun, when it rose, declining to the right from their Cave, and when it set, turning away from them to the left, while they lay in the midst of the Cave. That is (one) of the Ayat (proofs, evidences, signs) of Allah. He whom Allah guides, is rightly guided; but he whom He sends astray, for him you will find no Wali (guiding friend) to lead him (to the right Path). (Translation by Muhsin Khan / Hilali)
Had you seen them in the Cave it would have appeared to you that when the sun rose, it moved away from their Cave to the right; and when it set, it turned away from them to the left, while they remained in a spacious hollow in the Cave. This is one of the Signs of Allah. Whomsoever Allah guides, he alone is led aright; and whomsoever Allah lets go astray, you will find for him no guardian to direct him. (Translation by Abu Al-Alaa Maududi)
Thou wouldst have seen the sun, when it rose, declining to the right from their Cave, and when it set, turning away from them to the left, while they lay in the open space in the midst of the Cave. Such are among the Signs of Allah: He whom Allah, guides is rightly guided; but he whom Allah leaves to stray,- for him wilt thou find no protector to lead him to the Right Way. (Translation by Yusuf Ali)


See Full Surah Al-Kahf