Mishkat al-Masabih 2392
‘Abdallah [i.e. ‘Abdallah b. Mas’ud.] said that the Prophet used to say in the evening, “We have come to the evening, and in the evening the dominion belongs to God; praise be to God; there is no god but God alone who has no partner; to Him belongs the dominion, to Him praise is due, and He is omnipotent. My Lord, I ask Thee for the good of what this night contains and the good of what comes after it; I seek refuge in Thee from the evil of what this night contains and the evil of what comes after it; my Lord, I seek refuge in Thee from indolence and from the evil of old age, or infidelity."* A version has, "From the evil of old age and pride. My Lord, I seek refuge in Thee from a punishment in hell and a punishment in the grave." In the morning he said that also:
"We have come to the morning, and in the morning the dominion belongs to God..."
*The transmitter was not sure which word was used.

Abu Dawud and Tirmidhi transmitted it. Tirmidhi did not mention "from the evil of infidelity" in his version.
وَعَنْ عَبْدِ اللَّهِ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَقُولُ إِذَا أَمْسَى: «أَمْسَيْنَا وَأَمْسَى الْمُلْكُ لِلَّهِ وَالْحَمْدُ لِلَّهِ لَا إِلَهَ إِلَّا اللَّهُ وَحْدَهُ لَا شَرِيكَ لَهُ لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ رَبِّ أَسْأَلُكَ خَيْرَ مَا فِي هَذِهِ اللَّيْلَةِ وَخَيْرَ مَا بَعْدَهَا وَأَعُوذُ بِكَ مِنْ شَرِّ مَا فِي هَذِهِ اللَّيْلَةِ وَشَرِّ مَا بَعْدَهَا رَبِّ أَعُوذُ بِكَ مِنَ الْكَسَلِ وَمِنْ سُوءِ الْكِبَرِ أَوِ الْكُفْرِ» . وَفِي رِوَايَةٍ: «مِنْ سُوءِ الْكِبَرِ وَالْكِبْرِ رَبِّ أَعُوذُ بِكَ مِنْ عَذَابٍ فِي النَّارِ وَعَذَابٍ فِي الْقَبْرِ» . وَإِذَا أَصْبَحَ قَالَ ذَلِكَ أَيْضًا: «أَصْبَحْنَا وَأَصْبَحَ الْمُلْكُ لِلَّهِ» . رَوَاهُ أَبُو دَاوُدَ وَالتِّرْمِذِيُّ وَفِي رِوَايَتِهِ لم يذكر: «من سوءِ الكفرِ»