If he survives ( a life-threatening situation he put himself in) with the help of the Creator, may he be exalted; he will lose his merit and reward, as our Masters of blessed memory have said of this " A person should never stay in a dangerous place and say that a miracle will be performed for him lest no miracle be performed and if it is perfomred for him his merits are diminished ( Shabbos 32a)