History

The Islam of Firoun

Q: In the story of Musa (Alayhis Salaam), just before Pharoahe dies, he repents and declares himself a Muslim, but his Islam is not accepted. Is the situation the same for us today: if a non-Muslim doesn't accept Islam until a catastrophy happens and he knows he will die, will his Islam not be accepted?