From Sahih Bukhari (Hadith 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
Reference: Bukhari 57