Sunan Abi Dawud, Hadith 4332

A similar tradition has also been transmitted by ‘Adl from the prophet though a different chain of narrators. This version has : He who sees it and disapproves of it will be like him who was not present.

حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ، حَدَّثَنَا أَبُو شِهَابٍ، عَنْ مُغِيرَةَ بْنِ زِيَادٍ، عَنْ عَدِيِّ بْنِ عَدِيٍّ، عَنِ النَّبِيِّ صلى الله عليه وسلم نَحْوَهُ قَالَ ‏ "‏ مَنْ شَهِدَهَا فَكَرِهَهَا كَانَ كَمَنْ غَابَ عَنْهَا ‏" ‏ ‏.‏

sunnah.com

also referenced under: Hadith 4346 (DarusSalam)