The Book of al-Bay'ah
39/17. Chapter:
Pledging To Forsake The Idolaters
Sunan an-Nasai
أَخْبَرَنَا بِشْرُ بْنُ خَالِدٍ، قَالَ حَدَّثَنَا غُنْدَرٌ، عَنْ شُعْبَةَ، عَنْ سُلَيْمَانَ، عَنْ أَبِي وَائِلٍ، عَنْ جَرِيرٍ، قَالَ بَايَعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم عَلَى إِقَامِ الصَّلاَةِ وَإِيتَاءِ الزَّكَاةِ وَالنُّصْحِ لِكُلِّ مُسْلِمٍ وَعَلَى فِرَاقِ الْمُشْرِكِ .
It was narrated that Jarir said: I pledged to the Messenger of Allah (ﷺ) to perform Salah, pay the Zakah, be sincere toward every Muslim and forsake the idolaters.
Reference : Sunan an-Nasa'i 4175In-book reference : Book 39, Hadith 27English translation : Vol. 1, Book 3, Hadith 4180