Bava Basra 8b: The people of the town are allowed to switch funds from kuppah (for the local poor) to tamchuy (for all the poor in the world) and vice versa, or to divert the funds to whatever cause they want.
Shulchan Aruch Yoreh Deah 256:4: The people of the town are allowed to switch funds from kuppah (for the local poor) to tamchuy (for all the poor in the world) and vice versa, or to divert the funds to any public need that they choose, even though they did not stipulate such at the time they collected it. And if there is a great rabbi in the city and all charity is collected subject to his discretion, and he distributes it to the poor as he sees fit, then he can divert the money to any public need as he sees fit.
בבא בתרא ח ע”ב: ורשאים בני העיר לעשות קופה תמחוי ותמחוי קופה, ולשנותה לכל מה שירצו.
שולחן ערוך יורה דעה רנ”ו ס”ד: רשאים בני העיר לעשות קופה תמחוי ותמחוי קופה ולשנותם לכל מה שירצו מצרכי צבור ואע״פ שלא התנו כן בשעה שגבו ואם היה במדינה חכם גדול שהכל גובים על דעתו והוא יחלק לעניים כפי מה שיראה ה״ז יכול לשנותו לכל מה שיראה לו מצרכי צבור.
The Beserminer Rav, Rabbi Yitzchok Isaac Lieberman zt”l, lived in Chicago starting in the 1940’s, and he begged the Satmar Rebbe many times to spend a Shabbos in Chicago to give encouragement to the local Jews and influence them spiritually. The Rebbe’s gabboim told the Beserminer Rav that undertaking such a difficult trip, which would involve a long train ride, would be very taxing on the Rebbe’s already busy schedule. But if the visit could bring in at least $5,000 for the Yitav Lev yeshiva in Jerusalem, established by the Rebbe for young Holocaust survivors – the Rebbe would go. Running this yeshiva had already brought the Rebbe deep into debt.
The Beserminer Rav replied that he would make sure to raise the $5,000. At the beginning of 5708 (October 1947), right after the Yamim Tovim, the Rebbe traveled to Chicago, where the local Jews spent an uplifting Shabbos with him. After Shabbos, a dinner was held to benefit the Yitav Lev yeshiva, and the Beserminer Rav worked hard to collect the entire sum needed.
Before the Rebbe returned, the rabbonim of Chicago came to bid him farewell, and they discussed the state of the Jewish community. When the subject of the mikvah came up, they told the Rebbe that the mikvah needed repair, but there was no money to do the repair.
The Rebbe went right away to see the mikvah for himself, and indeed it did not comply with one of the stringencies that he kept. He asked the rabbonim why they couldn’t make the change, and they replied that fixing it would require digging down to the foundations, a major expense that was beyond their capabilities. The Rebbe asked how much it would cost to do the work, and they estimated $5,000. The Rebbe didn’t think twice; he took out the entire sum he had raised in Chicago to pay off some of his debts on the Yitav Lev yeshiva, and gave it to the rabbonim to use for the mikvah… Understandably, this made a big impression on the rabbonim, and they quickly moved to get the mikvah fixed.
The Rebbe later wrote to the Beserminer Rav, “Thank you for bringing me to Chicago to fix the mikvah and make it compliant with the highest standards. I will always be grateful to you in this world and the next.”
Source: Sefer Mayim Chaim, by Shmuel Shloime Teller
