Sunan an-Nasa'i #2047
The Book of Funerals 21:231
It was narrated from Abu Hurairah that the Messenger of Allah said:
"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