“out of Shiloh.” The camp of Israel had moved from Gilgal to Shiloh (cp. Josh. 18:1).
“which is in the land of Canaan.” The Bible is not embarrassed to say this was the land of Canaan but now God has driven them out and given the land to Israel.
“to go to the land of Gilead.” The majority of the tribes in the Transjordan would have gone to Gilead, and the tribe of Reuben might have traveled east to Gilead and then south to their own tribal land.
“according to the commandment of Yahweh by Moses.” The Hebrew is very concrete, and is literally, “by the mouth of Yahweh by the hand of Moses.”