Shaykh Abdul Sattar al-Hammad
Hadith Commentary:
His action was contrary to the belief in Allah’s power, but he did this at a time when he was overwhelmed by fear; on this basis, he was deprived of deliberation and reflection, and he had forgotten everything.
Because of such circumstances, he was not held accountable for it.
In any case, this person had faith in Allah, because when Allah asked him, he replied that it was Your fear that prompted him to do this.
If, in a state of intense fear, someone says or does something that would otherwise cause him to leave the fold of Islam, he will not be held accountable for it.
Source: Hidayat al-Qari: Commentary on Sahih Bukhari, Urdu, Page: 3478