It is a well established fact that the morals from the Bible simply come from the combination of morals already active at the time of it's writing. Every single moral value is based around self preservation. For example:
If someone murders you, you end up dead. Being dead is bad, therefore murder is immoral.
If someone steals something from you, you no longer have it and they have it for free when you paid for it. No longer having something is bad considering you have paid for it, therefore stealing is immoral.
Even something like charity is based on self-preservation. People rarely give to charity and keep quiet about it. People give to charity because they know that it looks good when they do, and looking good is beneficial in society.
If someone murders you, you end up dead. Being dead is bad, therefore murder is immoral.
If someone steals something from you, you no longer have it and they have it for free when you paid for it. No longer having something is bad considering you have paid for it, therefore stealing is immoral.
Even something like charity is based on self-preservation. People rarely give to charity and keep quiet about it. People give to charity because they know that it looks good when they do, and looking good is beneficial in society.