There are many different kinds of prayer. Yet all prayer has one basic purpose. We pray not to get something, but to open up a two-way street between us and God so that we (and others) may inwardly become something beautiful that we share with others.
The essence of nonviolence, the lack of any impulse to harm, lies in the peace passing understanding at the heart of all of us and of every religious tradition. From that place ensues trust in the unfolding process of life, at the same time as action to the greater good. It is the source of action because compassion naturally arises from wisdom and wisdom is the nature of that place. Compassion is being moved, literally, to act for the greater good.