In al-Mu'jam al-Awsat, these words of this narration are mentioned: "Whoever reviles Ammar, Allah Almighty will revile him, and whoever hates Ammar, Allah Almighty will hate him." Its chain contains more than one narrator about whom there is disagreement.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب المناقب / 15598