Al-Kahf 12

ثُمَّ بَعَثْنَٰهُمْ لِنَعْلَمَ أَىُّ ٱلْحِزْبَيْنِ أَحْصَىٰ لِمَا لَبِثُوٓا۟ أَمَدًا ﴿١٢﴾

Thumma baAAathnahum linaAAlama ayyu alhizbayni ahsa lima labithoo amadan

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. The Noble Quran