When death approached him, it was said to him, "Abu Abdul-Rahman, give us your final counsel."He said, "Sit me up." Then he said, "Knowledge and faith remain in their place. Whoever seeks them will find them." He repeated this three times. "Seek knowledge from four men, from Uwaymir Abu Darda, from Salman Farsi, from Abdullah bin Masud, and from Abdullah bin Salam, who was a Jew and then embraced Islam, for I heard the Messenger of Allah ﷺ say that he is the tenth of ten in Paradise."
حدثنا قتيبة حدثنا الليث عن معاوية بن صالح عن ربيعة بن يزيد عن أبي إدريس الخولاني عن يزيد بن عميرة قال لما حضر
الموت قيل له يا أبا عبد الرحمن أوصنا قال أجلسوني فقال إن العلم والإيمان مكانهما من ابتغاهما وجدهما يقول ذلك ثلاث مرات والتمسوا العلم عند أربعة رهط عند عويمر أبي الدرداء وعند سلمان الفارسي وعند عبد الله بن مسعود وعند عبد الله بن سلام الذي كان يهوديا فأسلم فإني سمعت رسول الله ﷺ يقول إنه عاشر عشرة في الجنة
[Its isnad is sahih] Ahmad narrated it: 5/242, and Nasai in Sunan al-Kubra, no. 8253, from Qutayba, with the same wording. Ibn Hibban graded it sahih, no. 2252, as did Hakim: 12/98, saying it meets the conditions of the two Shaikhs, and Dhahabi agreed with him.On this subject, there is also a narration from Saad bin Abu Waqqas [Bukhari, no. 3812, and Muslim, no. 2483].