Other translations of verse 17
You would have seen the sun when it rose, it would incline away from their Cave to the right; and when it set, it would turn away from them to the left11, while they were in its open space. That was one of the signs of Allah. Whoever Allah guides is rightly guided, and whoever He causes to stray, you will never find for him a protecting guide.
Notes
[11] As such they would get all the air and ventilation they needed to sustain.
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 Ayât (proofs, evidence, signs) of Allâh. He whom Allâh guides, he is the rightly guided; but he whom He sends astray, for him you will find no Walî (guiding friend) to lead him (to the right Path).
And thou mightest have seen the sun when it rose move away from their cave to the right, and when it set go past them on the left, and they were in the cleft thereof. That was (one) of the portents of Allah. He whom Allah guideth, he indeed is led aright, and he whom He sendeth astray, for him thou wilt not find a guiding friend.
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.
And you might see the sun when it rose, decline from their cave towards the right hand, and when it set, leave them behind on the left while they were in a wide space thereof. This is of the signs of Allah; whomsoever Allah guides, he is the rightly guided one, and whomsoever He causes to err, you shall not find for him any friend to lead (him) aright.
And you might have seen the sun when it rose, declining from their cave towards the right; and when it set, it went past them towards the left while they were in a broad fissure of (the cave). That was one of the signs of Allah. Whomever Allah guides, then he is right-guided, and whomever He leads away into error, then you will never find for him a right-minded patron.