Num 24:2

2Balaam looked up and saw Israel camping tribe by tribe. Then the spirit of God came upon him,