'Allah has promised those among you who believe, and do righteous good deeds, that He will certainly grant them inheritance of power, Just as He granted...
'Allah has promised those among you who believe, and do righteous good deeds, that He will certainly grant them inheritance of power, Just as He granted it to those before them. He will grant them authority to practice their religon; the one He has chosen for them and He will replace their state of fear to one of security (provided) they worship Me and do not associate anything with Me. Whosoever disbelieves after this then they are rebellious'
(surah Nur: 24:55)
So the essential condition for the help of Allah is Tawheed and the absence of associating partners with Him
002.028 How can you reject the faith in Allah?- seeing that you were without life, and He gave you life; then will He cause you to die, and will again bring you to life; and again to Him will you return.
Say: He is Allah, the One and Only! Allah, the Eternal, Absolute; He begetteth not nor is He begotten. And there is none like unto Him.