Daniel 7:22 Midrash

עַ֣ד דִּֽי־אֲתָ֗ה עַתִּיק֙ יֽוֹמַיָּ֔א וְדִינָ֣א יְהִ֔ב לְקַדִּישֵׁ֖י עֶלְיוֹנִ֑ין וְזִמְנָ֣א מְטָ֔ה וּמַלְכוּתָ֖א הֶחֱסִ֥נוּ קַדִּישִֽׁין׃

until the Ancient of days came, and judgment was given for the saints of the Most High; and the time came, and the saints possessed the kingdom.

Read midrashic interpretation of Daniel 7:22: and classical rabbinic exegesis.