come morning he could present himself to the rector of the parish church , hand him a document that would commit him to give all he had to the parish poor , the widowed , the orphaned , and to spend the remainder of his days celibate , praying and fasting .