Yours is the day, Yours also is the night;
You have prepared the light and the sun.
You have established all the boundaries of the earth;
You have made summer and winter.
Remember this, O Lord, that the enemy has reviled,
And a foolish people has spurned Your name.
Do not deliver the soul of Your turtledove to the wild beast;
Do not forget the life of Your afflicted forever.
Consider the covenant;
For the dark places of the land are full of the habitations of violence.
Let not the oppressed return dishonored;
Let the afflicted and needy praise Your name.
Arise, O God, and plead Your own cause;
Remember how the foolish man reproaches You all day long.
Do not forget the voice of Your adversaries,
The uproar of those who rise against You which ascends continually.
from Psalm 74
the Lord said to Joshua, “Do not fear or be dismayed. Take all the people of war with you and arise, go up to Ai; see, I have given into your hand the king of Ai, his people, his city, and his land. You shall do to Ai and its king just as you did to Jericho and its king; you shall take only its spoil and its cattle as plunder for yourselves. Set an ambush for the city behind it.”
Israel took only the cattle and the spoil of that city as plunder for themselves, according to the word of the Lord which He had commanded Joshua. So Joshua burned Ai and made it a heap forever, a desolation until this day.
Then Joshua built an altar to the Lord, the God of Israel, in Mount Ebal, just as Moses the servant of the Lord had commanded the sons of Israel, as it is written in the book of the law of Moses, an altar of uncut stones on which no man had wielded an iron tool; and they offered burnt offerings on it to the Lord, and sacrificed peace offerings. He wrote there on the stones a copy of the law of Moses, which he had written, in the presence of the sons of Israel. All Israel with their elders and officers and their judges were standing on both sides of the ark before the Levitical priests who carried the ark of the covenant of the Lord, the stranger as well as the native. Half of them stood in front of Mount Gerizim and half of them in front of Mount Ebal, just as Moses the servant of the Lord had given command at first to bless the people of Israel. Then afterward he read all the words of the law, the blessing and the curse, according to all that is written in the book of the law. There was not a word of all that Moses had commanded which Joshua did not read before all the assembly of Israel with the women and the little ones and the strangers who were living among them.
from Joshua 8
When the inhabitants of Gibeon heard what Joshua had done to Jericho and to Ai, they also acted craftily and set out as envoys, and took worn-out sacks on their donkeys, and wineskins worn-out and torn and mended, and worn-out and patched sandals on their feet, and worn-out clothes on themselves; and all the bread of their provision was dry and had become crumbled. They went to Joshua to the camp at Gilgal and said to him and to the men of Israel, “We have come from a far country; now therefore, make a covenant with us.”
So the men of Israel took some of their provisions, and did not ask for the counsel of the Lord. Joshua made peace with them and made a covenant with them, to let them live; and the leaders of the congregation swore an oath to them.
It came about at the end of three days after they had made a covenant with them, that they heard that they were neighbors and that they were living within their land. Then the sons of Israel set out and came to their cities on the third day. Now their cities were Gibeon and Chephirah and Beeroth and Kiriath-jearim. The sons of Israel did not strike them because the leaders of the congregation had sworn to them by the Lord the God of Israel. And the whole congregation grumbled against the leaders. But all the leaders said to the whole congregation, “We have sworn to them by the Lord, the God of Israel, and now we cannot touch them. This we will do to them, even let them live, so that wrath will not be upon us for the oath which we swore to them.” The leaders said to them, “Let them live.” So they became hewers of wood and drawers of water for the whole congregation, just as the leaders had spoken to them.
from Joshua 9