Sahih Muslim , Book 1, Hadith 108 (In-Book) ⓘ
It is narrated on the authority of Jarir that he observed: I owed allegiance to the Messenger of Allah (may peace and blessings be upon him) on hearing ( is commands) and obeying (them) and the Prophet) instructed me (to act) as lay in my power, and sincerity and goodwill for every Muslim.
حَدَّثَنَا سُرَيْجُ بْنُ يُونُسَ، وَيَعْقُوبُ الدَّوْرَقِيُّ، قَالاَ حَدَّثَنَا هُشَيْمٌ، عَنْ سَيَّارٍ، عَنِ الشَّعْبِيِّ، عَنْ جَرِيرٍ، قَالَ بَايَعْتُ النَّبِيَّ صلى الله عليه وسلم عَلَى السَّمْعِ وَالطَّاعَةِ فَلَقَّنَنِي " فِيمَا اسْتَطَعْتَ " . وَالنُّصْحِ لِكُلِّ مُسْلِمٍ . قَالَ يَعْقُوبُ فِي رِوَايَتِهِ قَالَ حَدَّثَنَا سَيَّارٌ .
also referenced under: Hadith 56 (Reference) & Book 1, Hadith 103 (USC-MSA)