taking help

Doubting the help of Allah Ta'ala

Q: Sometimes we are told to have patience and expect the help of Allah Ta'ala in times of difficulty. Examples are given of Ebrahim (alaihis salaam) as he was flung over the fire, or the help of Allah Ta'ala to Nuh (alaihis salaam) through the ark, etc. But there are also many cases where prophets themselves were killed, or good believers were killed, and so they were not saved by Allah Ta'ala.

How should we reconcile this, that we may sometimes encourage a person that Allah Ta'ala's help will come as long as you have yaqeen, yet there are many cases where prophets or believers with perfect yaqeen still were made shaheed.