An old frontiersman loses his horse—a blessing in disguise. What does the next sentence mean?

How to know whether it is a blessing or not reminds us of the eight-character idiom: a blessing in disguise is a blessing in disguise.

In ancient times, an old man kept horses in a castle. One day, his horse disappeared, but a year later, he brought back a pony. When the pony grew up, the old man's son tried to ride it, but the pony threw him and broke his leg. Then the Great Wall launched a war, and men were fighting everywhere. The old man's son was saved from World War I because of his disability. The neighbors of the old man judged the experience of the old man several times in succession according to the immediate events. The old people, on the other hand, have the idea of "knowing whether it is a blessing or not" and foresee the good or bad in the future. The story has been passed down to this day, and later generations use how to know what is not a blessing. It is not necessarily a bad thing to suffer for a while, but maybe it will be a blessing in disguise in the future.