(כז) וַיֹּ֤אמֶר יְהוָה֙ אֶל־מֹשֶׁ֔ה כְּתָב־לְךָ֖ אֶת־הַדְּבָרִ֣ים הָאֵ֑לֶּה כִּ֞י עַל־פִּ֣י ׀ הַדְּבָרִ֣ים הָאֵ֗לֶּה כָּרַ֧תִּי אִתְּךָ֛ בְּרִ֖ית וְאֶת־יִשְׂרָאֵֽל׃ (כח) וַֽיְהִי־שָׁ֣ם עִם־יְהוָ֗ה אַרְבָּעִ֥ים יוֹם֙ וְאַרְבָּעִ֣ים לַ֔יְלָה לֶ֚חֶם לֹ֣א אָכַ֔ל וּמַ֖יִם לֹ֣א שָׁתָ֑ה וַיִּכְתֹּ֣ב עַל־הַלֻּחֹ֗ת אֵ֚ת דִּבְרֵ֣י הַבְּרִ֔ית עֲשֶׂ֖רֶת הַדְּבָרִֽים׃ (כט) וַיְהִ֗י בְּרֶ֤דֶת מֹשֶׁה֙ מֵהַ֣ר סִינַ֔י וּשְׁנֵ֨י לֻחֹ֤ת הָֽעֵדֻת֙ בְּיַד־מֹשֶׁ֔ה בְּרִדְתּ֖וֹ מִן־הָהָ֑ר וּמֹשֶׁ֣ה לֹֽא־יָדַ֗ע כִּ֥י קָרַ֛ן ע֥וֹר פָּנָ֖יו בְּדַבְּר֥וֹ אִתּֽוֹ׃
(27) And the LORD said unto Moses: ‘Write thou these words, for after the tenor of these words I have made a covenant with thee and with Israel.’ (28) And he was there with the LORD forty days and forty nights; he did neither eat bread, nor drink water. And he wrote upon the tables the words of the covenant, the ten words. (29) And it came to pass, when Moses came down from mount Sinai with the two tables of the testimony in Moses’hand, when he came down from the mount, that Moses knew not that the skin of his face were KRN while He talked with him.
מדרש רבה שמות מז
ומהיכן נטל משה קרני ההוד ... ר' יהודה בר נחמן בשם רשב"ל אומר עד שהיה כותב בקולמוס נשתייר קימעא והעבירו על ראשו וממנו נעשו לו קרני ההוד.
Midrash Rabah Shemos 47
From where did Moses take the rays of splendor? Rabbi Judah son of Nachman said in the name of Rabbi Shimon ben Levi, when he finished writing [the Torah] with his quill, some ink remained. He passed it over his head and from it he acquired the rays of splendor.

. מסכת ברכות לד, ב
מקום שבעלי תשובה עומדין צדיקים גמורים אינם עומדין.
Talmud Berachos 34B
In the place [spiritual level] where baalei teshuvah stand, the complete tzadikim do not stand.