And my soul shall be joyful in the Lord. A sudden transition from imprecatory prayer to thanksgiving, or rather, to the promise of it—"My soul shall be joyful;" i.e. it shall be so when my prayers have been granted.
It shall rejoice in his salvation. "Salvation" here is, no doubt, especially, deliverance from the immediate danger, but, perhaps, even here, not only that (see the comment on Psalms 35:3).