ספר המדות, Knowledge of God / Part I Knowledge of God / Part I · כז
Sefer HaMiddot 553
כז. כְּשֶׁעוֹשֶׂה תְּשׁוּבָה בְּכָל לֵב, הַקָּדוֹשׁ־בָּרוּךְ־הוּא נוֹתֵן לִבּוֹ לָדַעַת תַּאֲוָתוֹ וּרְצוֹנוֹ.
27. When one repents with all his heart, G-d grants his heart to know His desire and will.