And if We had willed, We could have elevated him thereby, but he adhered [instead] to the earth and followed his own desire. So his example is like that of the dog: if you chase him, he pants, or if you leave him, he [still] pants. That is the example of the people who denied Our signs. So relate the stories that perhaps they will give thought.
And you would think them awake, while they were asleep. And We turned them to the right and to the left, while their dog stretched his forelegs at the entrance. If you had looked at them, you would have turned from them in flight and been filled by them with terror.
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 argument and do not inquire about them among [the speculators] from anyone."
Why do the numbers differ from one website to another?
Some count the root (every word built on it), others a single word, others the exact form as written in the Mushaf: all three numbers are given here.
Prefixes and suffixes (و، ب، ال…) are taken into account; a search on the raw text may miss some, or count words from another root that are spelled the same way.
The counts follow the Hafs reading and the grammatical analysis of each of the 77,429 words of the Quran.
Results are ranked automatically: only texts of the Quran and translations of their meaning are shown, with no machine-written text. For a legal opinion, consult a scholar.