It's haraam, one would have to repent of such a statement, it was only an example regarding a man who feared for his sins so much and was forgiven for his fear of Allah and ignorant attempt, he was ignorant and unaware.
If someone said it and then repented of it, it may also have been an example for those who are incredulous to think, sort of like the comment of - be ye stones or iron, Allah can still ressurect you. But it is indeed forbidden and shouldn't be practised.