Hashem spoke to Moshe, saying.
The Ohr Hachaim explains the meaning of the word לֵּאמֹר – saying. When does the Torah use it and when does the Torah not use it? The Torah seems to be saying that he should repeat the words that Hashem said. But the possuk already says דַּבֵּר אֶל בְּנֵּי יִשְּ רָאֵּל – speak to the Children of Israel. Moshe was told to repeat this to Klal Yisroel, why does the Torah have to say לֵּאמֹר?
The Ohr Hachaim offers an explanation that is applicable to many other pessukim in the Torah. The Gemara says מניין לאומר דבר לחבירו שהוא בבל יאמר עד שיאמר לו לך אמור שנאמר וידבר ה' אליו מאהל מועד לאמר – How do we know that when one who tells another something, it is incumbent upon the latter not to repeat it to others until the former explicitly permits? As it is stated: “And Hashem spoke to him from within the Tent of Meeting, saying [lemor].” Lemor is a contraction of lo emor, meaning: Do not say. One must be given permission before transmitting information. The Torah needed to tell Moshe Rabbeinu to tell the information to Klal Yisroel, that he should have permission to repeat it. Otherwise, he would be obligated to keep it to himself. This is the meaning of the word לאמר – that Moshe could repeat it.
The next possuk tells Moshe a new thing, and now Moshe is obligated to repeat it to Klal Yisroel. This was not merely permission but an obligation.
Every Mitzvah had to have two instructions to repeat them: one as permission and one as a command.
Indeed, throughout the Torah, whenever a לאמר cannot be explained by this Ohr Hachaim, he offers another explanation.