Avot6: 11
כָּל מַה שֶּׁבָּרָא הַקָּדוֹשׁ בָּרוּךְ הוּא בָּעוֹלָמוֹ, לֹא בְרָאוֹ אֶלָּא לִכְבוֹדוֹ, שֶׁנֶּאֱמַר: ”כֹּל הַנִּקְרָא בִשְׁמִי וְלִכְבוֹדִי בְּרָאתִיו יְצַרְתִּיו אַף־עֲשִׂיתִיו”; וְאוֹמֵר: ”ה' יִמְלֹךְ לְעֹלָם וָעֶד”. רַבִּי חֲנַנְיָא בֶּן עֲקַשְׁיָא אוֹמֵר, רָצָה הַקָּדוֹשׁ בָּרוּךְ הוּא לְזַכּוֹת אֶת יִשְׂרָאֵל, לְפִיכָךְ הִרְבָּה לָהֶם תּוֹרָה וּמִצְוֹת, שֶׁנֶּאֱמַר יְהֹוָה חָפֵץ לְמַעַן צִדְקוֹ יַגְדִּיל תּוֹרָה וְיַאְדִּיר:
All that the Holy One, Blessed is He, created in His world He created only for His honor, as it states: Everyone who is called by My Name and whom I have created for My glory, whom I have fashioned, even perfected. And it states: Hashem shall reign for all eternity.
Horayos1: 1
הוֹרוּ בֵית דִּין לַעֲבוֹר עַל אַחַת מִכָּל מִצְוֹת הָאֲמוּרוֹת בַּתּוֹרָה, וְהָלַךְ הַיָּחִיד וְעָשָׂה שׁוֹגֵג עַל פִּיהֶם, בֵּין שֶׁעָשׂוּ וְעָשָׂה עִמָּהֶן, בֵּין שֶׁעָשׂוּ וְעָשָׂה אַחֲרֵיהֶן, בֵּין שֶׁלֹּא עָשׂוּ וְעָשָׂה — פָּטוּר, מִפְּנֵי שֶׁתָּלָה בְבֵית דִּין.  הוֹרוּ בֵית דִּין וְיָדַע אֶחָד מֵהֶן שֶׁטָּעוּ, אוֹ תַלְמִיד וְהוּא רָאוּי לְהוֹרָאָה, וְהָלַךְ וְעָשָׂה עַל פִּיהֶן, בֵּין שֶׁעָשׂוּ וְעָשָׂה עִמָּהֶן, בֵּין שֶׁעָשׂוּ וְעָשָׂה אַחֲרֵיהֶן, בֵּין שֶׁלֹּא עָשׂוּ וְעָשָׂה — הֲרֵי זֶה חַיָּב, מִפְּנֵי שֶׁלֹּא תָלָה בְבֵית דִּין.  זֶה הַכְּלָל: הַתּוֹלֶה בְעַצְמוֹ — חַיָּב. וְהַתּוֹלֶה בְבֵית דִּין — פָּטוּר.
[If] the court ruled to violate one of the commandments stated in the Torah, and an individual went and acted erroneously on their word, [regardless of] whether they acted and he acted along with them, or they acted and he acted after them, or whether they did not act but he did —- he is exempt, because he relied on the court.  [If] the court ruled and one of them knew that they had erred, or he was a student worthy of ruling, and he went and acted on their word, whether they acted and he acted with them, or they acted and he acted after them, or they did not act but he did —- he (lit., this one) is liable, because he did not rely on the court.  This is the rule: One who relies on himself is liable, but one who relies on the court is exempt.