"And Moses said, this is the thing that the LORD has commanded: an omer of it shall be kept" (Exodus 16:32). Were I to say only this, I might think Aaron set it down only in the fortieth year. Scripture teaches (Exodus 16:34): "as the LORD commanded Moses, so Aaron laid it up before the Testimony." When was the ark made? Was it not in the second year? Hence Aaron laid it up only in the second year.
The Jar of Manna Aaron Set Before the Testimony
Mekhilta DeRabbi Shimon Ben Yochai 16:30
ויאמר משה זה הדבר אשר צוה ה' מלא העומר ממנו וגו' אם אומר אני יכול לא הניחו אהרן אלא בשנת הארבעים ת"ל (פס' ל"ד) כאשר צוה אל משה ויניחהו אהרן לפני העדות: אימתי נעשה ארון לא בשנה שנייה [הוי לא הניחו אהרן אלא בשנה שנייה):