Bhagavad Gita, Chapter 13, Verse 29
Since seeing the Lord equally existent everywhere, he injures not Self by self, and so goes to the highest Goal.
Seeing the same presence equally everywhere is named here as what actually protects someone from their own worst instincts.
This isn't just a nice way of looking at the world, it's tied directly to not degrading oneself through the mind's usual patterns. Real perception here has a real, protective effect.