The Spirits' Book
Book Three - Moral Laws
Chapter X - IX. Law of Liberty
855. Why does Providence make us encounter dangers that have no result?
“When your life is in peril, it is a warning to turn you away from wickedness and leave you better off. When you escape this danger, and while still feeling the emotion stimulated by the danger you encountered, you think according to the degree in which you are influenced by good spirits to mend your ways. If a bad spirit dominates (In using the word bad I am referring to the evil that is still within that spirit), you think that you will escape other dangers in the same manner, and once again you give free rein to your passions. Through the dangers that you encounter, God reminds you of your weakness and the fragility of your existence. If you examine the cause and nature of the peril you have escaped, you will see that in many cases its consequences would have been the atonement of some fault you have committed, or some duty you have neglected. God warns you to reflect upon and correct your faults.” (See Q526-532)