What did Yosef mean when he said "Atem Chashavtem alai le'Ra'ah; Elokim Chashavah le'Tovah!"?
Rashbam: Although you intended to do me harm, Hashem caused you not to sin against me, because He wanted things to turn out for your good.
Seforno: You acted in error, thinking that I was a Rodef (who was after your blood), in which case what you did would have been justified. So Hakadosh-Baruch-Hu saw to it that your error should have a good ending.
Why is "Aso" written with a Hei?
Hadar Zekenim (45:12): This hints that Hashem did this, and not me.