[Machine] The Messenger of Allah ﷺ used to say when he would rise from sleep at night, "Subhanakallahumma wa bihamdik, Allahumma ghfir li." Then he would say, "I seek refuge in Allah, the All-Hearing, the All-Knowing, from the cursed Satan, from his madness, evil, and blowing." Then he would recite the following, narrated to us by Abdullah bin Mas'ud, in a raised and standing voice.
كَانَ رَسُولُ اللهِ ﷺ إِذَا قَامَ مِنَ اللَّيْلِ كَبَّرَ فَذَكَرَ اسْتِفْتَاحَهُ بِسُبْحَانَكَ اللهُمَّ وَبِالتَّهْلِيلِ وَالتَّكْبِيرِ بَعْدَهُ ثَلَاثًا أَعُوذُ بِاللهِ السَّمِيعِ الْعَلِيمِ مِنَ الشَّيْطَانِ الرَّجِيمِ مِنْ هَمْزِهِ وَنَفْخِهِ وَنَفْثِهِ ثُمَّ يَقْرَأُ وَرُوِّينَاهُ عَنْ عَبْدِ اللهِ بْنِ مَسْعُودٍ مَرْفُوعًا وَمَوْقُوفًا