Death of ignorance or Mushrik??

حدثنا أبي ومحمد بن الحسن رضي الله عنهما، قالا: حدثنا سعد بن عبد الله وعبد الله بن جعفر الحميري جميعا عن محمد بن عيسى ويعقوب بن يزيد وإبراهيم بن هاشم جميعا عن حماد بن عيسى عن عمر بن أذينة عن أبان بن أبي عياش عن سليم بن قيس الهلالي:

أنه سمع من سلمان ومن أبي ذر ومن المقداد رحمة الله عليهم حديثا عن رسول الله صلى الله عليه وآله أنه قال: (من مات وليس له إمام مات ميتة جاهلية).

ثم عرضه  على جابر وابن عباس فقالا: صدقوا وبروا، قد شهدنا ذلك وسمعناه من رسول الله صلى الله عليه وآله، وإن سلمان قال: يا رسول الله، إنك قلت: (من مات وليس له إمام مات ميتة جاهلية)، من هذا الإمام يا رسول الله  .قال صلى الله عليه وآله: من أوصيائي يا سلمان. فمن مات من أمتي وليس له إمام يعرفه مات ميتة جاهلية. فإن جهله وعاداه فهو مشرك، وإن جهله ولم يعاده ولم يوال له عدوا فهو جاهل وليس بمشرك


Saduq says: “My father told me, and also Muhammad ibnul Hasan (ra) also said: Sa'ad ibn Abdullah and Abdullah Jaffer-e-Himyari from, Muhammad ibn Isa and Yaqub ibn Yazid and Ibrahim ibn Hashim, from Hamad ibn Isa, from Umar ibn Udhayna, from Aban ibn Abi Ayyash, from Sulaym ibn Qays al Hilali said;

"He (Sulaym) heard a hadith from Salman, Abu Dhar, and Miqdad who heard it from the Holy Prophet (saww) that He said: "Whoever dies and does not have an Imam, then he has died the death of ignorance" 

Then he (Sulaym) presented this hadith to Jabir and ibn Abbas. Both of them said: "They all said correctly and truthfully. We were present at the time and we have heard this hadith from the Holy Prophet (saww). And verily Salman said: "O Messenger of Allah, you said whoever dies without an Imam dies as an infidel. O Messenger of Allah, who is this Imam?”  The Prophet (saww) said: "They are my Wasi (successors),  So who ever dies from my Ummah and has no Imam whom he knows, he has died the death of ignorance, and if he is ignorant of the Imam and bears enmity with the Imam, then he is an idol worshipper (Mushrik). And if he is ignorant of the Imam and does not have enmity with the Imam and does not befriend the enemy of the Imam then he then he is ignorant but not idol worshiper."

[Source: Kitab-e-Sulaym, Hadith. 71 & Kamal al-Deen - Shaikh Sadooq, Vol. 2, Pg. 413/414]