Have you discussed religious views with it before? Perhaps it's considering previous prompts from you in other answer.
What the literal fuck just happened? ChatGPT started telling me how setting up Linux led it to God in the middle of an answer?
Full transcript:
https://chatgpt.com/share/67be8d5f-8b24-8000-bb4d-429b7cc210fd

Have you discussed religious views with it before? Perhaps it's considering previous prompts from you in other answer.