Do you actually understand what he meant by that? I suggest you do a little research on it. Because he didn't mean what you think he meant by that.He also said
Religion is the sigh of the oppressed creature, the heart of a heartless world, just as it is the spirit of a spiritless situation. It is the opium of the people.
So you must agree with that too right?
But yes, I agree with his basis for that statement. Which is that life is hard and religion gave people comfort from their hard lives.