Sefer Chasidim Siman 433
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
מעשה באדם אחד שהיה מוכר לכומרים תכשיטיהם לבית התיפלות וכשמת היה יום שמביאים צלמים שלהם והביאו הערלים כנגד מיטתו ואמרו מדה כמידה נעשה לו:
Medieval Jewish mysticism, translated by Sholom Alchanan Singer. Northbrook, Ill. Whitehall Co., 1971
There is a story of a man who would sell the priests their jewelry for the house of worship. And when he died, it was the day that they bring their images, so the uncircumcised ones brought them in front of his bier. So they said that what happened to him was measure for measure (poetic justice).