ספר המדות A Judge · ב
Sefer HaMiddot 600
ב. עַל־יְדֵי שֶׁהַדִּין־תּוֹרָה הוֹלֵךְ וְנִתְמַעֵט, עַל־יְדֵי זֶה הַפַּרְנָסָה נִתְמַעֶטֶת, וְכֵן לְהֵפֶךְ.
2. As a result of Torah law (/resolutions of a Torah court) weakening, through this livelihood shrinks, also the opposite is true (t.n. The commentators do not provide a citation, so I suggest the opening verse of the Book of Judges (Shoftim) and Rashi there, also see there -- Shoftim 16:20 in Rashi).