Reference: Surah Al-Kahf – Quran, Chapter 18, Verse 12: Arabic and English Translation
12. Then We raised them up (from their sleep), that We might test which of the two parties was best at calculating the time period that they had tarried. (Translation by Muhsin Khan / Hilali)
and then roused them so that We might see which of the two parties could best tell the length of their stay. (Translation by Abu Al-Alaa Maududi)
Then We roused them, in order to test which of the two parties was best at calculating the term of years they had tarried! (Translation by Yusuf Ali)


See Full Surah Al-Kahf