Surah Al-Kahf, Verse 22
Translation — Sahih International
They 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 Muhammad], "My Lord is most knowing of their number. None knows them except a few. So do not argue about them except with an obvious argument and do not inquire about them among [the speculators] from anyone."
Source
Kur'an-ı Kerim, Kehf Suresi 18:22
https://kuran.diyanet.gov.tr/mushaf/kuran-meal-2/18-suresi-22-ayet