有几种说法
The lion was out of danger thanks to the rat's help.
Thanks to the rats help, the lion was out of danger.
The lion was more than greatful, for the rat had saved him from his demise. (或者from danger=.=)
或者最简单的:
The rat had saved the lion from danger.