This concerns the outward judgment: even if he is killed (1) and subjected to the same ruling as disbelievers, Allah will raise him according to his intention. Likewise, the hypocrites among us are outwardly accorded the ruling of Islam (2), but they will be raised according to their intentions. Recompense on the Day of Resurrection is based on what lies within hearts, not merely on outward appearances (3).
For this reason, it is related that al-Abbās said, “O Messenger of Allah, I was compelled.” He replied, “As for what was outwardly apparent of you, it was against us; as for your inner state, that is for Allah.” (4)
In sum, there is no disagreement among Muslims that if a person is in the abode of unbelief, has embraced faith, and is unable to emigrate, none of the prescriptions of the Sacred Law that lie beyond his capacity are obligatory upon him. Rather, obligation is commensurate with ability. The same applies to matters whose ruling he does not know. Thus, if he did not know that prayer was obligatory upon him and went for a period without praying, he would not be required to make those prayers up, according to the stronger of the two scholarly opinions. This is the position of Abū Hanīfa and the Zāhirīs, and it is one of the two positions within the school of Ahmad. The same applies to all other obligations, including fasting during Ramadan and paying