No, he did not. That is an urban myth that has been propagated by misquotes and outright falsehoods.
"The word God is for me nothing more than the expression and product of human weaknesses, the Bible a collection of honorable, but still primitive legends which are nevertheless pretty...