Yalkut Shimoni on Nach 429:1
ילקוט שמעוני, ישעיה פרק כו, תכט, וראה שם עוד
Yalkut Shimoni on Nach 429:1
Both the wicked of Israel and the righteous among idol-worshippers who remain in Gehinnom answer and say amen from within Gehinnom, the world trembles at the sound of their outcry before the Holy One, who asks what this great noise is; the ministering angels respond that these are the wicked of Israel and righteous gentiles remaining in Gehinnom who answer amen and justify the judgment, whereupon the Holy One's mercy is aroused greatly and He says He will do nothing more to them since the judgment and the evil inclination have already caused them suffering.
ואף רשעי ישראל וצדיקי עובדי אלילים שנשתיירו בגיהנם עונים ואומרים אמן מתוך גיהנם ומתרעש העולם עד שנשמע קול צעקתם לפני הקב"ה והוא שואל מה קול הרעש הגדול אשר שמעתי ומשיבים מלאכי השרת ואומרים לפניו רבש"ע אלו רשעי ישראל וצדיקי עובדי אלילים שנשתיירו בגיהנם שעונים אמן ומצדיקים עליהם את הדין, מיד מתגלגלים רחמיו של הקב"ה אעלים ביותר ואומר מה אעשה להם יותר על דין זה כבר יצר הרע גרם להם