Another version of the tradition narrated on the same authority attributes the same words to the Messenger of Allah ﷺ except that it replaces kariha with ankhara and vice versa.
قَالَ رَسُولُ اللَّهِ ﷺ بِنَحْوِ ذَلِكَ غَيْرَ أَنَّهُ قَالَ فَمَنْ أَنْكَرَ فَقَدْ بَرِئَ وَمَنْ كَرِهَ فَقَدْ سَلِمَ