He was very religious; he believed that he had a secret pact with God which exempted him from doing good in exchange for prayers and piety.