The God of the old testament is arguably the most unpleasant character in all fiction:jealous and proud if it; a petty unjust unforgiving control freak, a conductive bloodthirsty ethnic cleanser, a misogynist, a homophobic, racist, infanticidal, genocidal, filicidal, pestilential, meglomanical, masochistic, capricious bully.
Robert Sherman once asked George Bush snr. Whether he recognised the citizenship and patriotism of atheists.
He said "no, I don't know they should be considered citizens nor should they be considered patriots. This is one nation under god"
This is what George washington and John Adams said and signed in 1797.
"AS the government of the United States is not founded on the Christian religion, it is declared by the parties that no religious opinions shall ever produce an interruption to the harmony"
That's not what a lot of people believe.
Do not confuse morality, and righteousness with man's idea of "good". The scriptures state that God is "morally" perfect, He is Holy (Isa. 6:3, Rev. 4:8), just and righteous (Ps. 89:14) and GOOD (Ps 100:6, 106:1).
Thus....being a morally perfect person/entity (as God is spirit) as state in Matthew 5:48......everything that God does, commands and approves must by necessity be GOOD (Ps. 119:39,68).
There are a few passages in scripture where some might be confused and assume "That is not the command of someone Good or Moral" and that might effect the picture that they might have concerning the Character of God. Especially in dealing with the nation of Biblical Israelites.
One such event would be when Israel had a commission to take control of the land of the Canaanites. The Lord God ordered Israel to "smite completely" the peoples thereof, and to show no mercy upon them (Deut. 7:1-5). God ordered Israel to totally destroy all that was in the city, the peoples, man, woman and child.....all their properties such as ox, sheep and ass. (Jos. 6:21).
How could a Merciful God be so unmerciful to these people? There are several things that must be considered. 1st: The Lord God had been very patient with these grossly immoral and paganistic tribes of people for a very long time.......God had promised this land to father Abraham's seed, but the time had not yet come as the "....iniquities of the Amorites is not yet full." (Genesis 15:16)
To consider this in rational fashion think of the sins of the these pagans filling a glass.......slowly, in spite of God's longsuffering the glass of iniquities by these tribes was being filled to point that it was overflowing, testing God's longsuffering patience. It finally got to the point that God could no longer tolerate this type of evil. This wickedness would have to be removed from the earth.......on a smaller scale than during the time of Noah the evil would be wiped from the land of promise....God lost His patience.
Archaeological discoveries such as those found at "Ugarit"....have revealed the corrupt nature of the people of the Canaanite Nations. Example: The chief religion was El and his son Baal....these were gods with no concept of morality toward their fellowmen. There is a historical "poem" about the god El.....who rapped/seduced 2 women and had immoral sexual perversions associated with his name. He married 3 of his own sisters who were also married to Baal the son, he practiced perverted sex and while influencing others to do the same. Sex was elevated as a form of worship. These pagans were also guilty of raiding other peoples and stealing their children to use as sex slaves or to sacrifice on a burning stake to their pagan gods.
Thus, when Israel invaded the land of the Canaanites they were ordered to totally destroy them in order to preserve the morality of Israel ".............so that they teach you (Israel) not to do all their abominations which they have done unto their gods so that ye sin against Jehovah your God." -- Deut. 20:18.
This was a type of surgery........to remove a cancer so that it would not be possible to corrupt God's chosen nation......Israel by having the customs and social mores' of the Canaanites infect Israel.
When you look at this action in relation to observing ETERNITY..........God acted righteously when ordering even the death of the children. Consider that it would have been far whose to allow these children to grow into adults and be responsible for their sins they might engage because of the immoral customs of the Canaanites. As children...they were sin free and would be allowed into heaven, as unrepentant adults, had they been allowed to grow into maturity they would be eternally damned. Thus...God removed this cancer from the earth totally.
Another thing to consider is the fact that simply because there is a history of a recorded event in the Old Testament.....that does not mean that God always condoned that action that was recorded. A true history includes the good, the bad and the ugly. The Old Testament is filled with history of heroes and villains alike who sinned........this does not mean that God condoned that sin or acts of immorality.