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
Hadith No. 524
Sahih al Bukhari