Abdullah ibn Salam reported: We were travelling with the Messenger of Allah, peace and blessings be upon him, when people were heard saying, “Which deeds are best, O Messenger of Allah?” The Prophet said, “Faith in Allah and His Messenger, jihad in the way of Allah, and a righteous Hajj pilgrimage.” Then, a caller was heard in the valley, “I bear witness there is no God but Allah and Muhammad is the Messenger of Allah!” The Prophet said, “I bear witness as well! I testify that no one bears witness to it but that he is innocent of idolatry.”
Source: Musnad Aḥmad 23783
Grade: Sahih li ghayrihi (authentic due to external evidence) according to Al-Arna’ut
عَنْ عَبْدِ اللهِ بْنِ سَلَامٍ قَالَ بَيْنَمَا نَحْنُ نَسِيرُ مَعَ رَسُولِ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِذْ سَمِعَ الْقَوْمَ وَهُمْ يَقُولُونَ أَيُّ الْأَعْمَالِ أَفْضَلُ يَا رَسُولَ اللهِ فَقَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِيمَانٌ بِاللهِ وَرَسُولِهِ وَجِهَادٌ فِي سَبِيلِ اللهِ وَحَجٌّ مَبْرُورٌ ثُمَّ سَمِعَ نِدَاءً فِي الْوَادِي يَقُولُ أَشْهَدُ أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللهِ فَقَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ وَأَنَا أَشْهَدُ وَأَشْهَدُ أَنْ لَا يَشْهَدَ بِهَا أَحَدٌ إِلَّا بَرِئَ مِنَ الشِّرْكِ
23783 مسند أحمد بن حنبل
39/200 المحدث شعيب الأرناؤوط خلاصة حكم المحدث صحيح لغيره في تخريج المسند لشعيب