According to one tradition, Moses spent forty days and nights in this heavenly yeshiva before receiving the Torah. During this time, he learned all 613 commandments and all the secrets of the Torah. However, he was not allowed to eat or drink.
Another tradition relates that when Moses arrived in heaven, the angels were hostile to him. They asked God why a human being should receive the Torah. God told Moses to answer them. Moses then asked the angels if they had to work, if they had evil inclinations, or if they were jealous of one another. The angels admitted that they did not have these human frailties. Moses then argued that the Torah was not for them, but for human beings, who needed it to overcome their earthly struggles.
Yet another tradition tells that Moses saw God sitting in heaven, writing the Torah. God wrote, "Moses was a sinner." Moses protested, but God insisted that this was the truth. Moses then asked God to write, "Moses was a humble man." God agreed, and Moses was satisfied.