Joshua the son of Nun was full of the spirit of wisdom for Moses had laid his hands on him and the children of Israel listened to him and did as Yahweh commanded Moses

What is the correctly punctuated version of this sentence?
Joshua the son of Nun was full of the spirit of wisdom; for Moses had laid his hands on him: and the children of Israel listened to him, and did as Yahweh commanded Moses.