Sunnah.com : Book 3, Hadith 48
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ سُمَىٍّ، مَوْلَى أَبِي بَكْرٍ عَنْ أَبِي صَالِحٍ السَّمَّانِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ إِذَا قَالَ الإِمَامُ {غَيْرِ الْمَغْضُوبِ عَلَيْهِمْ وَلاَ الضَّالِّينَ} فَقُولُوا آمِينَ فَإِنَّهُ مَنْ وَافَقَ قَوْلُهُ قَوْلَ الْمَلاَئِكَةِ غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ " ."
Yahya related to me from Malik from Sumayy, the mawla of Abu Bakr, from Abu Salih as Samman, from Abu Hurayra that the Messenger of Allah (ﷺ) said, "When the imam has said, 'not of those with whom You are angry nor of those who are in error,' say 'Amin', for the previous wrong actions of the one whose utterance coincides with that of the angels, are forgiven him."
Full reference and source
Sunnah.com : Book 3, Hadith 48 USC-MSA web (English) : Book 3, Hadith 48 Arabic : Book 3, Hadith 195
View source on Sunnah.com (opens in a new tab)