peace be upon you :
Is that applicable to anybody who said Shahada outwardly though he was enemy of Islam?
Or that was exclusively applicable to Pharaoh (Fir'on) only?
"Repentance with Allah is only for those who do evil in ignorance, then turn (to Allah) soon, so these it is to whom Allah turns (mercifully), and Allah is ever Knowing, Wise.
And repentance is not for those who go on doing evil deeds, until when death comes to one of them, he says: Surely now I repent; nor (for) those who die while they are unbelievers. These are they for whom We have prepared a painful chastisement."
so, that applicable to anybody who said Shahada outwardly though he was enemy of Islam.
How if someone died without saying Shahada but All his works were in favor of Islam?
in other verses allah said : " Only they forge the lie who do not believe in Allah's communications, and these are the liars.
[16.106] He who disbelieves in Allah after his having believed, not he who is compelled while his heart is at rest on account of faith, but he who opens (his) breast to disbelief-- on these is the wrath of Allah, and they shall have a grievous chastisement.
[16.107] This is because they love this world's life more than the hereafter, and because Allah does not guide the unbelieving people.
[16.108] These are they on whose hearts and their hearing and their eyes Allah has set a seal, and these are the heedless ones.
[16.109] No doubt that in the hereafter they will be the losers."
allah order us to believe with our heart not with our tongue.
peace :statisfie