Through studying scripture I've discovered that if a sinner (an unrighteous person) prays, God finds this practice an abomination. He finds their worship to be an abomination as well.
With that said, what if this sinner is truly thankful that he woke up in the morning and wasn't dead? What if...