[Machine] I came to the Messenger of Allah ﷺ to pledge allegiance to him, so I said, "Give me your hand and stipulate conditions for me, as you are the most knowledgeable about it." So he said, "I pledge allegiance to you upon the condition that you do not associate anything with Allah, establish the prayer, give the Zakat, advise the Muslims, and separate from the polytheists."
أَتَيْتُ رَسُولَ اللهِ ﷺ أُبَايِعُهُ فَقُلْتُ هَاتِ يَدَكَ وَاشْتَرِطْ عَلَيَّ وَأَنْتَ أَعْلَمُ بِالشَّرْطِ فَقَالَ أُبَايِعُكَ عَلَى أَنْ لَا تُشْرِكَ بِاللهِ شَيْئًا وَتُقِيمَ الصَّلَاةَ وَتُؤْتِيَالزَّكَاةَ وَتَنْصَحَ الْمُسْلِمَ وَتُفَارِقَ الْمُشْرِكَ