Sahih al-Bukhari, Book 2, Hadith 50 (Bukhari 57)

Narrated Jarir bin Abdullah:

I gave the pledge of allegiance to Allah's Messenger (ﷺ) for the following: 1. offer prayers perfectly 2. pay the Zakat (obligatory charity) 3. and be sincere and true to every Muslim.