The tradition mentioned above has also been transmitted by Ibn 'Umar from the Prophet (ﷺ) through different chain of narrators to the same effect. In this version he also said:
"He who assits in a dispute unjustly deserves the anger of Allah, Most High.