“As water by cooling and condensation becomes ice, so thought by condensation assumes physical form. Everything in the universe is thought in material form. The spirit could not create matter as anything different from itself, for it had only itself as the tissue or material with which to build the cosmos.
There is essentially nothing in the universe but mind or Consciousness. Everything is spirit – in essence, though hidden in manifestation. If you had the perception, you would see God in everything.”
~ Paramahansa Yogananda
But if you think bad thoughts of others , you will have to endure bad happening to you. Even if the other person hurt you first.
There is no such thing as righteous indignation as per Swami Vivekananda
Patanjali gave ultimate secret of karma in yoga sutra based on this