Mishkat al-Masabih 2405
وَعَنْ شَدَّادِ بْنِ أَوْسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم: «مَا من مُسْلِمٍ يَأْخُذُ مَضْجَعَهُ بِقِرَاءَةِ سُورَةٍ مِنْ كِتَابِ اللَّهِ إِلَّا وَكَّلَ اللَّهُ بِهِ مَلَكًا فَلَا يَقْرَبُهُ شَيْءٌ يُؤْذِيهِ حَتَّى يَهُبَّ مَتَى هَبَّ» . رَوَاهُ التِّرْمِذِيّ
From Shaddad ibn Aws, who said: The Messenger of Allah ﷺ said: "There is no Muslim who takes to his bed reciting a surah from the Book of Allah except that Allah appoints an angel over him, so that nothing that would harm him comes near him until he wakes up, whenever he wakes up." Reported by at-Tirmidhi.