"May Allah curse the Jews and Christians who took the graves of their prophets as Masjids." (Sahih) Chpater 107. It Is Disliked to Walk Between Grave Wearing Sibtiyah Sandals (Using translation from Nasāʾī 2047)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَعَنَ اللهُ الْيَهُودَ وَالنَّصَارَى اتَّخَذُوا قُبُورَ أَنْبِيَائِهِمْ مَسَاجِدَ