“The Prophet ﷺ mentioned the army that would be swallowed up by the earth, and Umm Salamah said: ‘O Messenger of Allah, perhaps there will be some among them who were forced (to join them)?’ He said: ‘They will be resurrected according to their intentions.’” (Using translation from Ibn Mājah 4065)
عَنْ أُمِّ سَلَمَةَ ذَكَرَ النَّبِيُّ ﷺ الْجَيْشَ الَّذِي يُخْسَفُ بِهِمْ فَقَالَتْ أُمُّ سَلَمَةَ لَعَلَّ فِيهِمُ الْمُكْرَهَ فَقَالَ إِنَّهُمْ يُبْعَثُونَ عَلَى نِيَّاتِهِمْ