ספר המדות, Prayer / Part II Prayer / Part II · ח
Sefer HaMiddot 2682
ח. כָּל הַמֵּצֵר בְּצָרוֹת יִשְׂרָאֵל וּמִתְפַּלֵּל עֲלֵיהֶם, אַף עַל פִּי שְׁמֵּטִיחַ דְּבָרִים כְּלַפֵּי מַעְלָה אֵינוֹ נֶעֱנָשׁ.
8. Anyone who is troubled by the sufferings of the Israel and prays for them, even though he slams his words (slightly disrespectfully) towards Heaven, he is not punished.