Bava Metzia 9:11
Bava Metzia9: 11
שְׂכִיר יוֹם גּוֹבֶה כָל הַלַּיְלָה. שְׂכִיר לַיְלָה גּוֹבֶה כָל הַיּוֹם. שְׂכִיר שָׁעוֹת גּוֹבֶה כָל הַלַּיְלָה וְכָל הַיּוֹם. שְׂכִיר שַׁבָּת, שְׂכִיר חֹדֶשׁ, שְׂכִיר שָׁנָה, שְׂכִיר שָׁבוּעַ, יָצָא בַיּוֹם — גּוֹבֶה כָל הַיּוֹם; יָצָא בַלַּיְלָה — גּוֹבֶה כָל הַלַּיְלָה וְכָל הַיּוֹם.
One who is hired for the day collects [his wages] all night. One who is hired for the night collects all day. One who is hired for [several] hours collects all night or all day. One who is hired for a week, a month, a year, [or] a septenary —- [if] he departs by day, he collects all [that] day; [if] he departs at night, he collects all [that] night and [the following] day.