Sentence:  He had done <WSD>God's work</WSD> by killing a man and would now gladly pay the earthly penalty, because he thought his reward would be in heaven. 
Meaning of the word marked with <WSD> tags:  Work in accordance with the will of God.