[Machine] The Messenger of Allah ﷺ used to say when he wanted to sleep, "O Allah, the Creator of the heavens and the earth, the Knower of the unseen and the seen, the Lord of everything and the deity of everything. I bear witness that there is no god but You alone, with no partner or associate, and that Muhammad is Your servant and Messenger. The angels bear witness. O Allah, I seek refuge in You from Satan, his companions, and I seek refuge in You from committing a sin or bringing it upon a Muslim."
كَانَ رَسُولُ اللهِ ﷺ يَقُولُ حِينَ يُرِيدُ أَنْ يَنَامَ «اللهُمَّ فَاطِرَ السَّمَاوَاتِ وَالْأَرْضِ عَالِمَ الْغَيْبِ وَالشَّهَادَةِ رَبَّ كُلِّ شَىءٍ وَإِلَهَ كُلِّ شَيْءٍ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا أَنْتَ وَحْدَكَ لَا شَرِيكَ لَكَ وَأَنَّ مُحَمَّدًا عَبْدُكَ وَرَسُولُكَ وَالْمَلَائِكَةُ يَشْهَدُونَ اللهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الشَّيْطَانِ وَشِرْكِهِ وَأَعُوذُ بِكَ أَنْ أَقْرِفَ عَلَى نَفْسِي إِثْمًا أَوْ أَرُدَّهُ إِلَى مُسْلِمٍ»