Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:3799bMaḥmūd b. Ghaylān > Wakīʿ > Sufyān > ʿAbd al-Malik Ibn ʿUmayr > Hilāl a freed slave of Ribʿī > Ribʿī > Ḥudhayfah

To us (saying): Waki' narrated to us (saying): Sufyan reported to us from 'Abdul-Malik bin 'Umair, from a freed slave of Rib'i bin Hirash, from Hudhaifah who said: "We were sitting with the Prophet SAW and he said: "I do not know how long I will be with you, so stick to the two after me,' and he signaled towards Abu Bakr and 'Umar- 'And act upon the guidance of 'Ammar, and whatever Ibn Mas'ud reports to you, then believe him.'"  

الترمذي:٣٧٩٩bحَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ حَدَّثَنَا وَكِيعٌ قَالَ حَدَّثَنَا سُفْيَانُ عَنْ عَبْدِ الْمَلِكِ ابْنِ عُمَيْرٍ عَنْ هِلاَلٍ مَوْلَى رِبْعِيٍّ عَنْ رِبْعِيِّ عَنْ حُذَيْفَةَ قَالَ

كُنَّا جُلُوسًا عِنْدَ النَّبِيِّ ﷺ فَقَالَ إِنِّي لاَ أَدْرِي مَا قَدْرُ بَقَائِي فِيكُمْ فَاقْتَدُوا بِاللَّذَيْنِ مِنْ بَعْدِي وَأَشَارَ إِلَى أَبِي بَكْرٍ وَعُمَرَ وَاهْتَدُوا بِهَدْىِ عَمَّارٍ وَمَا حَدَّثَكُمُ ابْنُ مَسْعُودٍ فَصَدِّقُوهُ هَذَا حَدِيثٌ حَسَنٌ وَرَوَى إِبْرَاهِيمُ بْنُ سَعْدٍ هَذَا الْحَدِيثَ عَنْ سُفْيَانَ الثَّوْرِيِّ عَنْ عَبْدِ الْمَلِكِ بْنِ عُمَيْرٍ عَنْ هِلاَلٍ مَوْلَى رِبْعِيٍّ عَنْ رِبْعِيٍّ عَنْ حُذَيْفَةَ عَنِ النَّبِيِّ ﷺ نَحْوَهُ وَقَدْ رَوَى سَالِمٌ الْمُرَادِيُّ الْكُوفِيُّ عَنْ عَمْرِو بْنِ هَرِمٍ عَنْ رِبْعِيِّ بْنِ حِرَاشٍ عَنْ حُذَيْفَةَ عَنِ النَّبِيِّ ﷺ نَحْوَ هَذَا