 On Mount Sinai, when Moses receives the law, and they come back down, Moses sets up a temporary tabernacle called the tent of meeting, where he would go and meet with God face to face. And Exodus 17 says that Joshua never left the tent of meeting. He lived in the tent of meeting. He was there, and he saw God speaking with Moses face to face.