As-Saff 61:5
And [mention, O Muḥammad], when Moses said to his people, "O my people, why do you harm me while you certainly know that I am the messenger of Allāh to you?" And when they deviated, Allāh caused their hearts to deviate.
Ayah 5
وَإِذْ قَالَ مُوسَىٰ لِقَوْمِهِۦ يَٰقَوْمِ لِمَ تُؤْذُونَنِى وَقَد تَّعْلَمُونَ أَنِّى رَسُولُ ٱللَّهِ إِلَيْكُمْ ۖ فَلَمَّا زَاغُوٓا۟ أَزَاغَ ٱللَّهُ قُلُوبَهُمْ ۚ وَٱللَّهُ لَا يَهْدِى ٱلْقَوْمَ ٱلْفَٰسِقِينَ
And [mention, O Muḥammad], when Moses said to his people, "O my people, why do you harm me while you certainly know that I am the messenger of Allāh to you?" And when they deviated, Allāh caused their hearts to deviate. And Allāh does not guide the defiantly disobedient people.