All praise is due to Allah, and may peace and blessings be upon the Messenger of Allah.
First: Envy (hasad) and the evil eye are affirmed in Islamic teachings, but their effects occur only by the will and permission of Allah Almighty.
Allah says:
“...and from the evil of an envier when he envies.” [Al-Falaq: 5]
The Prophet ﷺ said: “The evil eye is real.” Narrated by Al-Bukhari and Muslim.
Second: Is it permissible to attribute misfortunes to envy?
Being afflicted by the evil eye is an unseen matter that cannot be directly observed. However, if there are reasonable indications suggesting the possibility of being afflicted by envy or the evil eye, a Muslim may consider it a possible cause of the misfortune and perform Islamic ruqyah on himself.
However, the mere occurrence of an incident, such as an electrical appliance breaking down or a fire starting, is not sufficient to conclude that it was caused by envy. One should not allow this matter to become an obsession or exaggerate by attributing everything that happens to the evil eye.
It was narrated that Asma bint Umays (may Allah be pleased with her) told the Prophet ﷺ that the children of Ja'far were frequently affected by the evil eye. She asked him whether she should seek ruqyah for them, and he replied: “Yes.” Narrated by Al-Tirmidhi, who classified it as Hasan Sahih (good and authentic).
Conclusion: Envy and the evil eye are affirmed in Islamic teachings, and they may be causes of some misfortunes when reasonable indications exist. However, it is not permissible to assert that every accident or sudden malfunction is caused by envy without evidence.
And Allah knows best.