ספר המדות, Public Officials Public Officials · ג
Sefer HaMiddot 2405
ג.. אֲמִירַת הַלֵּל וּצְדָקָה מְסֻגָּלִין לְחֵן בְּעֵינֵי הַשָּׂר.
3. Saying of Hallel and giving charity are a segula (special charm) for [having] favor in the eyes of the minister (t.n. The commentators do not provide any citation here, perhaps we can gather a hint from the gift Jacob sent with his sons to Joseph in Egypt, to find favor in his eyes (Gen. 43:11-12). Rabbi Nachman says this was a song of the Holy Land -- Likutay Moharan vol. 2 Torah 63; thus it is an aspect of Hallel. And the money that the authorities take from the Jews is also considered charity -- see Likutay Moharan #25)