Taanis1: 3
בִּשְׁלֹשָׁה בְמַרְחֶשְׁוָן שׁוֹאֲלִין אֶת הַגְּשָׁמִים; רַבָּן גַּמְלִיאֵל אוֹמֵר: בְּשִׁבְעָה בוֹ, חֲמִשָּׁה עָשָׂר יוֹם אַחַר הֶחָג, כְּדֵי שֶׁיַּגִּיעַ אַחֲרוֹן שֶׁבְּיִשְׂרָאֵל לִנְהַר פְּרָת.
On the third [day] of MarCheshvan we request rain; Rabban Gamliel says: On its seventh [day], fifteen days after the festival, so that the last [pilgrim straggler] of Israel may reach the Euphrates River.
Taanis1: 4
הִגִּיעַ שִׁבְעָה עָשָׂר בְּמַרְחֶשְׁוָן וְלֹא יָרְדוּ גְשָׁמִים — הִתְחִילוּ הַיְחִידִים מִתְעַנִּין שָׁלֹשׁ תַּעֲנִיּוֹת: אוֹכְלִין וְשׁוֹתִין מִשֶּׁחָשֵׁכָה, וּמֻתָּרִין בִּמְלָאכָה, וּבִרְחִיצָה וּבְסִיכָה, וּבִנְעִילַת הַסַּנְדָּל, וּבְתַשְׁמִישׁ הַמִּטָּה.
If the seventeenth [day] of MarCheshvan arrived but rain did not fall, the [distinguished] individuals would start fasting [a series of] three fasts: They may eat and drink after dark, and they are permitted to work, bathe, anoint [themselves with oil], wear shoes, and have marital relations.