Sahih al-Bukhari, Book 9, Hadith 3 (Bukhari 514)

Narrated Jarir bin `Abdullah:

I gave the pledge of allegiance to Allah's Messenger (ﷺ) for to offer prayers perfectly, to pay Zakat regularly, and to give good advice to every Muslim.