To pray is to pay attention to something or someone other than oneself. Whenever we so concentrate our attention that we completely forget our own ego and desires, we are praying.
To be at peace with myself means to accept myself the way I am; to reduce the split that is created by the image of what I would like to be and who I really am; to be patient with myself, especially in regard to what conflicts with my idealized self.