You attract negative energies with negative thoughts. "Allah says Im just as my slaves thinks I'm" your thoughts shape you. Negativity is chaotic while positivity is calming. Calm your mind & stay positive. let the positivity attracts you.
I was listening to a podcast by Mufti Menk and he said "Don't allow yourself to get attached to anything on this earth to the point you feel lost when you lose it". And I haven't stopped thinking about that.