You possibly will not want the agnostic's view, but for what it is worth here it is. There is almost certainly no god but large numbers of people believe/hope there is - that does not make him/her/it a reality. Usually what happens when believers are asked the question you ask, they fluff the answer ("god works in mysterious ways") or come out with platitudes ("god loves us all"). What is certainly not meant to be unkind is to say that it is hugely common for people of intelligence, talent, etc. AND with a tendency for exploitation, dishonesty, reaching for power, manipulation, etc. to identify religion as a very useful tool. I have myself seen how religion is nothing less than a serious industry in Western Africa and your story is very familiar in that context. The best advice I can give you is to call on the strongest elements of your conscience and upbringing and serve your child well as a mother and not entrench or even impart negative views about her father and (preferably) not indoctrinate her with religion either - allow her to grow up as a balanced person capable of making her own choices and judgements. Life is mostly a mystery and we all bumble along the best we can so we can do without self-imposed burdens resulting from vacuous belief systems.