[(Exodus 37:1:) And Bezalel made the ark.] This is what Scripture says (Proverbs 9:9): "Give to a wise man, and he will be wiser still; [make known to a righteous man, and he will increase in learning]." It speaks of Noah when he made the ark. The Holy One, blessed be He, said to him (Genesis 7:2): "Of every clean animal [you shall take for yourself seven pairs, etc.]." When he came out, he offered up some of the clean ones. He said: The Holy One, blessed be He, increased the clean animals only so that I might offer some of them. This is the meaning of "Give to a wise man, and so forth" — this is Noah.
Why Noah Took Seven Pairs of Clean Animals Onto the Ark
Midrash Tanchuma Buber, Vayakhel 8:1
[ויעש בצלאל את הארון]. זש"ה תן לחכם ויחכם עוד [הודע לצדיק ויוסף לקח] (משלי ט ט), מדבר בנח כשעשה את התבה, א"ל הקב"ה מכל הבהמה הטהורה [תקח לך שבעה שבעה וגו'] (בראשית ז ב), כשיצא קירב מן הטהורה, אמר לא ריבה הקב"ה בהמה טהורה, אלא כדי שאקרב ממנה, הוי תן לחכם וגו' ה נח.