The Prophet ﷺ said, "When a sin is committed on earth, whoever witnesses it and detests it," and once he said, "denounces it, is like one who was absent from it. And whoever was absent from it but was pleased with it is like one who witnessed it."
حدثنا محمد بن العلاء أخبرنا أبو بكر حدثنا مغيرة بن زياد الموصلي عن عدي بن عدي
عن النبي ﷺ قال إذا عملت الخطيئة في الأرض كان من شهدها فكرهها وقال مرة أنكرها كان كمن غاب عنها ومن غاب عنها فرضيها كان كمن شهدها