Mishkat al-Masabih 2381
‘Abdallah told that when evening came God’s messenger would say, "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. O God, I ask Thee for something of the good of this night and the good of what it contains, and I seek refuge in Thee from its evil and the evil of what it contains. O God, I seek refuge in Thee from indolence, decrepitude, the evil of old age, temptation in this world, and the 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 ..." A version has, "My Lord, I seek refuge in Thee from a punishment in hell and a punishment in the grave." 

Muslim transmitted it.
عَن عَبْدِ اللَّهِ قَالَ: كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا أَمْسَى قَالَ: «أَمْسَيْنَا وَأَمْسَى الْمُلْكُ لِلَّهِ وَالْحَمْدُ لِلَّهِ وَلَا إِلَهَ إِلَّا اللَّهُ وَحْدَهُ لَا شَرِيكَ لَهُ لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ اللَّهُمَّ إِنِّي أَسْأَلُكَ مِنْ خَيْرِ هَذِهِ اللَّيْلَةِ وَخَيْرِ مَا فِيهَا وَأَعُوذُ بِكَ مِنْ شَرِّهَا وَشَرِّ مَا فِيهَا اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْكَسَلِ وَالْهَرَمِ وَسُوءِ الْكِبَرِ وَفِتْنَةِ الدُّنْيَا وَعَذَابِ الْقَبْرِ»
وَإِذَا أَصْبَحَ قَالَ أَيْضًا: «أَصْبَحْنَا وَأَصْبَحَ الْمُلْكُ لِلَّهِ» . وَفِي رِوَايَةٍ: «رَبِّ إِنِّي أَعُوذُ بِكَ مِنْ عَذَابٍ فِي النَّار وَعَذَاب فِي الْقَبْر» . رَوَاهُ مُسلم