Joshua 22:2

And said unto them, Ye have kept all that Moses the servant of the LORD commanded you, and have obeyed my voice in all that I commanded you:

The words are Joshua's formal commendation and dismissal of the two and a half tribes, Gad and Reuben and half Manasseh, at the close of the conquest. He commends them because they had faithfully kept all that Moses the servant of the Lord had commanded them, and had obeyed his own voice in all that he had commanded them. Their obedience had meant leaving their own inheritance in Gilead and Bashan east of the Jordan to furnish forty thousand armed men to pass over before the Lord to battle. Those men went to the plains of Jericho and fought bravely beside their brethren for years until Canaan was entered upon.

Having united in the conflicts, they justly shared in the spoils and were now sent away to the land of their possession with much riches. That reward included very much cattle, and silver and gold and brass and iron, and very much clothing, to be divided with those who had remained behind with the families and flocks. Joshua witnessed their departure with an anxious heart, for dwelling at a distance from the sanctuary in an isolated and wandering life would strongly tempt them to fall into the customs of the heathen tribes on their borders.