Reference for Menachot 10:9
קוֹצְרִין מִפְּנֵי הַנְּטִיעוֹת, מִפְּנֵי בֵית הָאֵבֶל, מִפְּנֵי בִטּוּל בֵּית הַמִּדְרָשׁ. לֹא יַעֲשֶׂה אוֹתָן כְּרִיכוֹת, אֲבָל מַנִּיחָן צְבָתִים. מִצְוַת הָעֹמֶר לָבֹא מִן הַקָּמָה. לֹא מָצָא, יָבִיא מִן הָעֳמָרִים. מִצְוָתוֹ לָבֹא מִן הַלַּח. לֹא מָצָא, יָבִיא מִן הַיָּבֵשׁ. מִצְוָתוֹ לִקְצֹר בַּלַּיְלָה. נִקְצַר בַּיּוֹם, כָּשֵׁר. וְדוֹחֶה אֶת הַשַּׁבָּת:
One may harvest for the sake of the saplings [i.e., to promote their growth], for the sake of a house of morning, and for the sake of a <i>Beit Midrash</i>, [but in such cases], one should not bind them but rather leave them in loose bunches. The [best fulfillment of the] commandment of the <i>omer</i> is that is come from standing grain; if he did not find any, he may bring from bundled grain. [The best fulfillment of] its commandment is that it come green; if he did not find any, he may bring it dry. [The best fulfillment of] its commandment is that it be reaped at night; if it was reaped during the day, it is still valid; and its [reaping] overrides Shabbat [prohibitions].