Did Napoleon actually say that? If he didn’t, it’s still a shrewd observation, and tallies well with what we now know about the fabrication of the Christian narrative by Josephus Flavius to please his Roman masters. Even better though, from the point of the view of the rich and powerful than stopping the poor from attacking them, is to get the poor to murder each other, by launching military/religious organisations like ISIS, and then sending armies to fight them.
The other purpose of state organised religion is to hide the spirituality of mankind, and the true strength within us all. All religions belittle man, and refuse to acknowledge our intuition, intelligence and ability to accumulate experience, organise ourselves and our world to the good of nature, of which we are a part. Real spiritual knowledge is hidden away from us.