That's maybe not what has been said here, but it's said pretty much in every discussion I've been. They argue that religion is necessary to "give" us a good moral compass, that without it we would be lost, etc.
Depends on what you consider religion, and morals, and I'd still argue it's not necessary. There are many philosophical sects that preach morality or reject the traditional compass that one can believe and internalize. Not all of these are traditionally recognized religions.