“Then Yahweh spoke to Joshua.” There are a number of ways God could have spoken to Joshua. It seems most likely that this would have been through the holy spirit that God had put upon Joshua (Num. 27:18; Deut. 34:9). But God spoke in various ways (Heb. 1:1).