Rabbi Chanan said: whoever hands over judgment against his fellow is himself punished first, as it says, "And Sarai said to Abram, My wrong be upon you" (Genesis 16:5), and it is written, "And Abraham came to mourn for Sarah and to weep for her" (Genesis 23:2). And this applies only when there is a judge on earth [to whom one could have appealed instead]. Rabbi Yitzchak said: woe to the one who cries out more than to the one cried out against. It was likewise taught: both the one who cries out and the one cried out against are included [in punishment], but they hasten to punish the one who cries out more than the one cried out against.
Whoever Brings Judgment Against a Neighbor Is Punished First
Yalkut Shimoni on Torah 79:4
אָמַר רַבִּי חָנָן, כָּל הַמּוֹסֵר דִּין עַל חֲבֵרוֹ, הוּא נֶעֱנַשׁ תְּחִלָּה, שֶׁנֶּאֱמַר, וַתֹּאמֶר שָׂרַי אֶל אַבְרָם חֲמָסִי עָלֶיךָ, וּכְתִיב (בראשית כג, ב) "וַיָּבֹא אַבְרָהָם לִסְפֹּד לְשָׂרָה וְלִבְכֹּתָהּ" וְהַנֵי מִילֵי דְאִית לֵיהּ דַּיְינָא בְּאַרְעָא. אָמַר רַבִּי יִצְחָק, אוֹי לוֹ לַצּוֹעֵק יוֹתֵר מִן הַנִּצְעָק. תַּנְיָא נַמִּי הָכִי, אֶחָד הַצּוֹעֵק וְאֶחָד הַנִּצְעָק בְּמַשְׁמַע אֶלָּא שֶׁמְּמַהֲרִין לַצּוֹעֵק יוֹתֵר מִן הַנִּצְעַק.