Distinction between Raja' and Tamanni [wishing]:
The distinction between the two is that Tamanni is associated with laziness and a person does not take matters seriously or does efforts; while Raja' is associated with exerting efforts and putting trust in Allah. The first is likened to a person wishes to have a land to cultivate and reap its fruits, and the second is likened to a person who ploughs his land, sew the seeds and waits its fruits.
Which one is perfect: the hope of a righteous person who seeks reward from his Lord or the hope of a wrong doer who seeks his Lord's forgiveness?
This is a controversial matter. A group of people preferred the hope of the righteous person who strongly seeks Allah's reward; and others preferred the hope of the wrong doer who seeks his Lord's forgiveness because it springs from the feeling of being guilty and humiliating himself to his Lord.