Reference for Rosh Hashanah 1:9
מִי שֶׁרָאָה אֶת הַחֹדֶשׁ וְאֵינוֹ יָכוֹל לְהַלֵּךְ, מוֹלִיכִין אוֹתוֹ עַל הַחֲמוֹר, אֲפִלּוּ בְמִטָּה. וְאִם צוֹדֶה לָהֶם, לוֹקְחִין בְּיָדָם מַקְּלוֹת. וְאִם הָיְתָה דֶרֶךְ רְחוֹקָה, לוֹקְחִין בְּיָדָם מְזוֹנוֹת, שֶׁעַל מַהֲלַךְ לַיְלָה וָיוֹם מְחַלְּלִין אֶת הַשַּׁבָּת וְיוֹצְאִין לְעֵדוּת הַחֹדֶשׁ, שֶׁנֶּאֱמַר (ויקרא כג), אֵלֶּה מוֹעֲדֵי ה' אֲשֶׁר תִּקְרְאוּ אוֹתָם בְּמוֹעֲדָם:
If one saw the new moon and could not walk (to beth-din), he may be taken on an ass (on the Sabbath), even in bed. And if they (highwaymen) are lying in wait (tzodeh) for them, [as in (I Samuel 24:11): "And you tzodeh my life to take it"], they may take clubs with them. And if it were a long way, they may take food with them. For, for a night and day journey one goes out to testify to (the appearance of) the new moon, it being written (Leviticus 23:4): "These are the appointed times of the L-rd … which you shall call in their proper times." [Wherever "appointed time in its proper time" is written, it overrides the Sabbath.]