Chp. 24 verses 5 -18: Moshe has the priest bring sacrifices to Hashem. He takes half the blood and sprinkles it on the alter and the other half he sprinkles on the people. He then reads to the people and they say "all that G-d has spoken we will do and we will obey." Moshe goes to the mountain accompanied by Aaron, Nadav, Avihu, and the elders. There they have a vision of the Divinity of Hashem, and they ate and they drank. Then Hashem tells Moshe to ascend the mountain to receive the tablets of stone containing the ten commandments. Yehoshua goes with Moshe to the foot of the mountain where he pitches his tent and waits for his master to return. After six days Hashem calls out to Moshe to ascend the mountain where he would stay for forty days and forty nights.