Indeed, those who have disbelieved and avert [people] from the way of Allāh and [from] al-Masjid al-Ḥarām, which We made for the people - equal are the resident therein and one from outside - and [also] whoever intends [a deed] therein1 of deviation [in religion] by wrongdoing - We will make him taste of a painful punishment.
Translation: Saheeh International (English)
1 Whether inside its boundaries or intending from afar to do evil therein. The Ḥaram is unique in that the mere intention of sin therein (whether or not it is actually carried out) is sufficient to bring punishment from Allāh.
Those who disbelieved in Allah, turn others away from entering Islam and stop people from the Sacred Mosque, like what the idolaters did in the year of Hudaiybiyah, that mosque which I made a direction for people in their prayers and one of the rites of Hajj and Umrah, and in which the person from Makkah who lives there and one who comes there besides the people of Makkah are the same; whoever intends to purposefully commit a shameful sin therein, I will make him taste a painful punishment.