Surah Al-Kahf, ayah 22

18:22

سَيَقُولُونَ ثَلَٰثَةٞ رَّابِعُهُمۡ كَلۡبُهُمۡ وَيَقُولُونَ خَمۡسَةٞ سَادِسُهُمۡ كَلۡبُهُمۡ رَجۡمَۢا بِٱلۡغَيۡبِۖ وَيَقُولُونَ سَبۡعَةٞ وَثَامِنُهُمۡ كَلۡبُهُمۡۚ قُل رَّبِّيٓ أَعۡلَمُ بِعِدَّتِهِم مَّا يَعۡلَمُهُمۡ إِلَّا قَلِيلٞۗ فَلَا تُمَارِ فِيهِمۡ إِلَّا مِرَآءٗ ظَٰهِرٗا وَلَا تَسۡتَفۡتِ فِيهِم مِّنۡهُمۡ أَحَدٗا ٢٢

Sayaqūlūna thalāthatur rābi'uhum kalbuhum wayaqūlūna khamsatun sādisuhum kalbuhum rajmā bil-ghaybi wayaqūlūna sab'atun wathāminuhum kalbuhum qur rabbī a'lamu bi'iddatihim mā ya'lamuhum illā qalīlun falā tumāri fīhim illā mirā'an zāhiran walā tastafti fīhim minhum ahadā

They [i.e., people] will say there were three, the fourth of them being their dog; and they will say there were five, the sixth of them being their dog - guessing at the unseen; and they will say there were seven, and the eighth of them was their dog. Say, [O Muḥammad], "My Lord is most knowing of their number. None knows them except a few. So do not argue about them except with an obvious argument785 and do not inquire about them among [the speculators] from anyone."

Footnotes

785 i.e., one from the Qur’ān, which is the only sure argument.