The Prophet ﷺ said, "Whoever says, before turning away or shifting his leg from the Maghrib and Fajr prayers, 'There is no god but Allah alone, with no partner. To Him belongs all sovereignty, and to Him belongs all praise. In His hand is all good. He gives life and causes death, and He is capable of all things,' ten times, will have ten good deeds recorded for him for each repetition, ten sins erased, and ten ranks raised. It will serve as a safeguard against everything detestable and a protection from the accursed Satan. No sin will be able to reach him, except for shirk. He will be among the most virtuous of people in deeds, surpassed only by a man who says something better than what he said."
حدثنا روح حدثنا همام حدثنا عبد الله بن أبي حسين المكي عن شهر بن حوشب
عن النبي ﷺ أنه قال من قال قبل أن ينصرف ويثني رجله من صلاة المغرب والصبح لا إله إلا الله وحده لا شريك له له الملك وله الحمد بيده الخير يحيي ويميت وهو على كل شيء قدير عشر مرات كتب له بكل واحدة عشر حسنات ومحيت عنه عشر سيئات ورفع له عشر درجات وكانت حرزا من كل مكروه وحرزا من الشيطان الرجيم ولم يحل لذنب يدركه إلا الشرك فكان من أفضل الناس عملا إلا رجلا يفضله يقول أفضل مما قال
Its chain of transmission is hasan due to Shahr bin Hawshab, and the rest are thiqat who have already been mentioned. Haythami said in 10/107, "Its narrators are the narrators of the Sahih, other than Shahr, and his hadith is hasan." Munziri said the same in Targheeb 1/307.