After the storm, worship comes first.

Noah sat in the ark through the whole flood, and God did not forget him.

Genesis 8:1 (KJV): And God remembered Noah, and every living thing, and all the cattle that was with him in the ark: and God made a wind to pass over the earth, and the waters asswaged;

The first thing Noah did on dry ground was build an altar.

Genesis 8:20 (KJV): And Noah builded an altar unto the LORD; and took of every clean beast, and of every clean fowl, and offered burnt offerings on the altar.

God received that worship as a sweet savour.

Genesis 8:21 (KJV): And the LORD smelled a sweet savour; and the LORD said in his heart, I will not again curse the ground any more for man's sake; for the imagination of man's heart is evil from his youth; neither will I again smite any more every thing living, as I have done.

When God brings you through, thank Him before anything else.

Psalms 100:4 (KJV): Enter into his gates with thanksgiving, and into his courts with praise: be thankful unto him, and bless his name.