Sahih al-Bukhari, Book 54, Hadith 4 (Bukhari 2605)

Narrated Jabir bin `Abdullah:

I gave the pledge of allegiance to Allah's Messenger (ﷺ) for offering the prayers perfectly paying the Zakat and giving good advice to every Muslim.