instance because they forgot their gods at that time whom they associated them with their Lord and the called on Allah being sincere for Him in the religion despite Allah
knows that some of them who will return to his association with his Lord and in spite
that Allah answers his call
. And Allah the Most High said:
{So when they ride in the ships, they call upon Allah, being sincerely obedient to Him; but when He brings them safe to the land,
lo! they associate others (with Him
),}
Truthful Allah the Great [Al-`Ankaboot] 29:65
{فَإِذَا رَكِبُوا فِي الْفُلْكِ دَعَوُا اللَّهَ مُخْلِصِينَ لَهُ الدِّينَ فَلَمَّا نَجَّاهُمْ إِلَى الْبَرِّ إِذَا هُمْ يُشْرِكُونَ}
صدق الله العظيم [العنكبوت:65].
And Allah the Most High said:
{And when a wave like awnings covers them, they call upon Allah, being sincere to Him in obedience. But when He brings them safe to land, some of them follow the middle course.
And none denies Our signs but every perfidious, ungrateful one
.}
Truthful Allah the Great [Luqmãn] 31:32
{وَإِذَا غَشِيَهُم مَّوْجٌ كَالظُّلَلِ دَعَوُا اللَّهَ مُخْلِصِينَ لَهُ الدِّينَ فَلَمَّا نَجَّاهُمْ إِلَى الْبَرِّ فَمِنْهُم مُّقْتَصِدٌ وَمَا يَجْحَدُ بِآيَاتِنَا إِلَّا كُلُّ خَتَّارٍ كَفُورٍ}
صدق الله العظيم [لقمان:32].
O folks, in this case indeed Allah answers the call of the believers, disbelievers, polytheists and atheists altogether if the requirement the supplication-call got available which it is the sincerity.
Confirming with the word of Allah the Most High:
{So when they ride in the ships, they call upon Allah, being sincerely obedient to Him; but when He brings them safe to the land, lo! they associate others (with Him),}
Truthful Allah the Great [Al-`Ankaboot] 29:65,
don’t you know that Allah issued fatwa to you in the Book that He does not chastise who turned close to Him and asked forgiveness and repented at the instance of the chastisement. Confirming with the word of Allah the Most High:
{.. nor would Allah chastise them while they seek forgiveness.}
Truthful Allah the Great [Al-Anfãl] 8:33.
Therefore the belief and the confession in the wrongdoing does not benefit at the instance of the chastisement if it did accompany that call and the seeking of forgiveness; so they say:
{.. Our Lord, we have wronged ourselves; and if You do not forgive us, and (not) have mercy on us, we shall certainly be of the losers.}
Truthful Allah the Great [Al-A`arãf] 7:23
{فَإِذَا رَكِبُوا فِي الْفُلْكِ دَعَوُا اللَّهَ مُخْلِصِينَ لَهُ الدِّينَ فَلَمَّا نَجَّاهُمْ إِلَى الْبَرِّ إِذَا هُمْ يُشْرِكُونَ}
صدق الله العظيم [العنكبوت:65].
{وَمَا كَانَ الّلهُ مُعَذِّبَهُمْ وَهُمْ يَسْتَغْفِرُونَ}
صدق الله العظيم [الأنفال:33]
{رَبَّنَا ظَلَمْنَا أَنْفُسَنَا وَإِنْ لَمْ تَغْفِرْ لَنَا وَتَرْحَمْنَا لَنَكُونَنَّ مِنَ الْخَاسِرِينَ}
صدق الله العظيم [الأعراف:23].
-------------------------------------------------------------------------------------------------------
full statment