I gave the pledge of allegiance to Messenger of Allah ﷺ for the following: 1. offer prayers perfectly 2. pay the Zakat (obligatory charity) 3. and be sincere and true to every Muslim. (Using translation from Bukhārī 57)
«بَايَعْتُ رَسُولَ اللهِ ﷺ عَلَى إِقَامِ الصَّلَاةِ وَإِيتَاءِ الزَّكَاةِ وَالنُّصْحِ لِكُلِّ مُسْلِمٍ»