Dennis Prager said this quote

Sigmund Freud, the father of psychiatry and an atheist, theorized that one’s attitude toward one’s father largely shaped one’s attitude toward God.