Sunan an-Nasa'i, Book 39, Hadith 27 (Nasa'i 4185)

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.