Thinking about good things and intending to do good acts is a cause of reward even if we fail to do it for unavoidable reasons. Intending to do a sinful act then not doing it, saves the person from the sin because he did not commit the sin despite of thinking about it.
Waswasa of Shaytan is very bad, but no punishment before committing a bad act.
Wassalam.