"I came to the Prophet when he was accepting (the people's) pledge, and said: 'O Messenger of Allah, extend you hand so that I may give you my pledge, and state your terms, for you know best.' He said: 'I accept you pledge that you will worship Allah, establish Salah, pay the Zakah, be sincere toward the Muslims, and forsake the idolaters." (Using translation from Nasāʾī 4177)
جَرِيرٌ أَتَيْتُ النَّبِيَّ ﷺ وَهُوَ يُبَايِعُ النَّاسَ فَقُلْتُ يَا رَسُولَ اللهِ ابْسُطْ يَدَكَ حَتَّى أُبَايِعَكَ فَقَالَ كَيْفَ تُبَايِعُنِي؟ فَقَالَ «أُبَايِعُكَ عَلَى أَنْ تَعْبُدَ اللهَ وَتُقِيمَ الصَّلَاةَ وَتُؤْتِيَ الزَّكَاةَ وَتُنَاصِحَ الْمُسْلِمَ وَتُفَارِقَ الْمُشْرِكَ»