Sayyiduna Jarir (may Allah be pleased with him) said: "I pledged allegiance to the Messenger of Allah (peace and blessings be upon him) on establishing prayer, paying zakah, and sincere goodwill toward every Muslim."
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 2234