A miracle is performed only for one who is ready to give up his life to sanctify Hashem's Name.
Sefer HaMidos, Salvation and Miracles, Part I §1