Every parent has heard some variation of that. It is a common response when a child doesn't get what he wants and doesn't understand why. But what of a mother who would punish a child for saying that? Such a mother would be a bad mother. Truly good parents accept the child's judgements for what they are -- judgements based on limited information.
Many religions (particularly the ones that say they are not religions) claim a god who would punish people for making the best judgements they can with the information available. Any such god would be wicked. Yes, there could be a god that sends me to eternal torment for saying so. But I am still morally better than him.