Similarly, most popular accounts of Phineas Gage describe him as having undergone profound personality changes because of his injury. He is often reported as having permanently lost his inhibitions, so that he started to behave inappropriately in social situations. Some reports state that became violent and "uncontrollable", and even that he started to molest children.
And how did this make the man think that God does not exist or that God will not judge his actions? Capacity and characteristics of thought might change. But the things which are thought are driven by personal factors for which the person himself is responsible.