Surah Al-Kahf

18:64

قَالَ ذَٰلِكَ مَا كُنَّا نَبْغِ ۚ فَٱرْتَدَّا عَلَىٰٓ ءَاثَارِهِمَا قَصَصًۭا

[Moses] said, "That is what we were seeking." So they returned, following their footprints.

Tafsir 18:64

Moses (peace be upon him) said to his servant: That is what we were looking for, for that is the sign of the place of the righteous servant. So they turned back retracing their steps, so that they do not lose the way until they reached the rock and from there the entry point of the fish.