who took the graves of their prophets as places of worship.”
The Qur’an conveys the same meaning as this ḥadith, for Allah—mighty and exalted—says in the story of the Companions of the Cave: “Those who prevailed over their affair said, ‘We shall surely build a mosque over them’” (18:21). Thus, turning graves into sites for mosques is portrayed as the work of those who hold sway over affairs, which suggests that its basis is coercion, domination, and the following of desire, and that it is not the practice of people of knowledge and virtue who champion the guidance Allah sent down to His messengers.
Shaykh ʿAlī ibn ʿUrwah said in Mukhtaṣar al-Kawākib (10 / 207 / 2), following al-Ḥāfiẓ Ibn Kathīr in his Tafsīr (3 / 78):
“Ibn Jarīr reported two views concerning the ones who uttered that statement: (1)
The first: that they were the Muslims among them.
The second: that they were the polytheists among them.