magnanimity

(adj)  showing or suggesting a lofty and courageous spirit    
In one last magnanimous act, the philanthropist gave all of his estate to a children's hospital.