וַיַּ֤רְא רֵאשִׁית֙ ל֔וֹ כִּי־שָׁ֛ם חֶלְקַ֥ת מְחֹקֵ֖ק סָפ֑וּן וַיֵּתֵא֙ רָ֣אשֵׁי עָ֔ם צִדְקַ֤ת יְהוָה֙ עָשָׂ֔ה וּמִשְׁפָּטָ֖יו עִם־יִשְׂרָאֵֽל׃ (ס)
And he chose a first part for himself, For there a portion of a ruler was reserved; And there came the heads of the people, He executed the righteousness of the LORD, And His ordinances with Israel. .
Pirkei Avot
Whoever causes the multitudes to be righteous, sin will not occur on his account; And whoever causes the multitudes to sin, they do not give him the ability to repent. Moses was righteous and caused the multitudes to be righteous, [therefore] the righteousness of the multitudes is hung on him, as it is said, “He executed the Lord’s righteousness and His decisions with Israel” (Deut. 33:21). Jeroboam, sinned and caused the multitudes to sin, [therefore] the sin of the multitudes is hung on him, as it is said, “For the sins of Jeroboam which he sinned, and which he caused Israel to sin thereby” (I Kings 15:30).