The Messenger of Allah ﷺ said from the pulpit, "Aslam, may Allah keep them safe, and Ghifar, may Allah forgive them."
أن رسول الله ﷺ قال على المنبر: أسلم سالمها الله وغفار غفر الله لها.
Bukhari narrated it in the Book of Virtues (3513), and Muslim in the Virtues of the Companions (2518), both through routes from Nafi, from Ibn Umar, and he mentioned it. The wording is Bukhari's.