عَنْ اَبِيْ عَبْدِ اللهِؑ عَنْ اَبِيْهِؑ قَالَ قَالَ اِذَا كَانَ يَوْمُ الْقِيَامَةِ وَ جَمَعَ اللهُ الْخَلَائِقَ مِنَ الْاَوَّلِينَ وَ الْآخِرِينَ فِيْ صَعِيدٍ وَاحِدٍ خَلَعَ قَوْلَ لَا اِلَهَ اِلَّا اللهُ مِنْ جَمِيعِ الْخَلَائِقِ اِلَّا مَنْ اَقَرَّ بِوَلَايَةِ عَلِيٍّؑ وَ هُوَ قَوْلُهُ تَعَالٰى يَوْمَ يَقُومُ الرُّوحُ وَ الْمَلائِكَةُ صَفًّا لا يَتَكَلَّمُونَ اِلَّا مَنْ اَذِنَ لَهُ الرَّحْمنُ وَ قَالَ صَوَابًا
Imam Sadeq (peace be upon him) informed,
“When it will be the Day of Judgment and Allah will gather all the creatures from the first ones and the last ones in one ground, the statement of ‘There is no god but Allah’ will be removed from all the creatures except the one who has acknowledged the mastership of Ali (peace be upon him) and this is His saying, ‘The day on which the spirit and the angels shall stand in ranks; they shall not speak except he whom the Beneficent God permits and who speaks the right thing’(Surah Naba (78): Verse 38).”
Note:
Only the one who accepts the mastership of Ali Ibn Abi Talib (peace be upon him), his monotheism will be recorded in his scroll of deeds; not otherwise. The same principle will apply to before Imam Ali Ibn Abi Talib (peace be upon him) and after him. If somebody accepts all Prophets (peace be upon them) but does not accept Prophet Eesaa (peace be upon him), his monotheism will not be accepted. Similarly, if someone rejects Imam Kazim (peace be upon him), his monotheism will not be accepted.
Monotheism will not be accepted from him means he will be raised as a disbeliever.
References:
1. Behaar al-Anwaar, vol. 24, p. 262, H. 18
2. Kanz-o-Jaame’ al-Fawaaed under the aforementioned verse