Morals are simply the accumulated common sense of scores of generations of people gathered together in settlements, villages and towns. How, they asked themselves, can we live together? The rules they made up as a result are now called ethics and morals, including common sense ideas like not lusting after your neighbour’s wife, nor his ass.
Where organised religion has been useful is in codifying these rules of conduct, not making them up. Many people are alive to the sudden opportunity or the next temptation, but at least the muftis, rabbis, mullahs and priests remind them of the rules. Otherwise some might slip into careless ways, shall we say. The Ten Commandments comprise a typical, handy list.
The other thing organised religion is good for is to frighten, or, more kindly, discipline the populace. This it does by threatening fire and brimstone and telling the guys to obey the ruler and pay their taxes, or they will end up in hell. If you are a king this is rather a useful prop to your regime.
But to go further and claim. as some do (e.g Mr. Theo Hobson) that without religion there is no morality is, in my opinion, bunkum. Epicurus believed that law and morality change according to the needs of any particular society and epoch. This couldn’t be the case if they are determined by an eternal god.