The Messenger of Allah ﷺ said, "Aslam, may Allah keep them safe, and Ghifar, may Allah forgive them. By Allah, I did not say it, but Allah said it."
قال حدثنا عبد الصمد قال حدثنا عمر بن راشد اليمامي قال
أن رسول الله ﷺ قال أسلم سالمها الله وغفار غفر الله لها أما والله ما أنا قلته ولكن الله قاله
Its isnad is daif because of Umar bin Rashid bin Shajarah, whom many scholars deemed daif, including Ahmad and Ibn Main, and Ibn Hibban was excessive in his criticism of him. The hadith has already appeared at 10020 with Abu Hurairah.