Ayoniso manasikara Sutta
I have heard that on one occasion a certain monk was dwelling among the Kosalans in a forest thicket. Now at that time, he spent the day's abiding thinking evil, unskillful thoughts: i.e., thoughts of sensuality, thoughts of ill will, thoughts of doing harm.
From inappropriate attention
you're being chewed by your thoughts.
Relinquishing what's inappropriate,
Keeping your mind on the Teacher,
the Dhamma, the Sangha, your virtues,
you will arrive at
you will put an end
to suffering & stress.
The monk, chastened by the devata, came to his senses.