Mishkat al-Masabih 825
وَعَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: إِذَا أَمَّنَ الْإِمَامُ فَأَمِّنُوا فَإِنَّهُ مَنْ وَافَقَ تَأْمِينُهُ تَأْمِينَ الْمَلَائِكَةِ غُفِرَ لَهُ مَا تقدم من ذَنبه) وَفِي رِوَايَةٍ قَالَ: إِذَا قَالَ الْإِمَامُ: (غَيْرِ المغضوب عَلَيْهِم وَلَا الضَّالّين) فَقُولُوا: آمِينَ فَإِنَّهُ مَنْ وَافَقَ قَوْلُهُ قَوْلَ الْمَلَائِكَةِ غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ . هَذَا لَفْظُ الْبُخَارِيِّ وَلِمُسْلِمٍ نَحْوُهُ وَفِي أُخْرَى لِلْبُخَارِيِّ قَالَ: «إِذَا أَمَّنَ الْقَارِئُ فَأَمِّنُوا فَإِنَّ الْمَلَائِكَةَ تُؤَمِّنُ فَمَنْ وَافَقَ تَأْمِينُهُ تَأْمِينَ الْمَلَائِكَةِ غفر لَهُ مَا تقدم من ذَنبه»
And from Abu Hurayrah, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "When the imam says amin, say amin, for whoever's amin coincides with the amin of the angels, his past sins are forgiven." And in a narration he said: "When the imam says: 'not of those who have earned anger, nor of those who are astray,' say: 'Amin,' for whoever's saying coincides with the saying of the angels, his past sins are forgiven." This is the wording of al-Bukhari, and Muslim has something similar. And in another of al-Bukhari he said: "When the reciter says amin, say amin, for the angels say amin, and whoever's amin coincides with the amin of the angels, his past sins are forgiven."