Every harm that enters upon a servant, is caused by the heart’s
corruption. The corruption of the heart in turn brings about the removal
of the heart’s right upon Allah, the Exalted, and a diminution of its
degree and rank in the sight of Allah. For this reason, some of the
shaykhs advised with their saying: Be cautious of (the) mixing with a
person which will cause wastage of time and corruption of the heart. For
verily, when time is wasted and the heart is corrupted, all of the
affairs of the servant will become ruined, and he will be of those about
whom Allah, the Exalted, said:
And obey not him whose heart We have made heedless of Our Remembrance, one who follows his own lusts and whose affair has been lost and wasted.
And obey not him whose heart We have made heedless of Our Remembrance, one who follows his own lusts and whose affair has been lost and wasted.
- Qur'an (Surah Al Kahf 28)
[Source: The Path to Guidance, Ibn Qayyim al-Jawziyyah]