Jonathan Haidt said this quote

Creating gods who can see everything, and who hate cheaters and oath breakers, turns out to be a good way to reduce cheating and oath breaking.