ספר המדות Faith / Part II · יז
Sefer HaMiddot 173
יז. מִי שֶׁאֵינוֹ יָכוֹל לִישׁן, יַעֲלֶה עַל מַחֲשַׁבְתּוֹ אֱמוּנַת תְּחִיַּת־הַמֵּתִים.
17. Someone who is not able to sleep, should arouse in his thought faith in the Resurrection of the Dead.
Sefer HaMiddot 173