Then Samuel took a stone, and set it between Mizpeh and Shen, and called the name of it Ebenezer, saying, Hitherto hath the LORD helped us. 1 Samuel 7:12.
All that Samuel has considered well. Even amid the desolations of Shiloh the Lord was helping them. He was helping them to know their sins, and helping them to know the bitter fruit and wo[e]ful punishment of sin...The links of the long chain denoted by Samuel's 'hitherto' were not all of one kind. Some were in the form of mercies, many were in the form of chastenings. (First Book of Samuel by W.G. Blakie, pg. 104 .)
Something we should all seriously consider when we look back on what has occured in our lives; that many situations were chastenings for our good though it may not have seemed so at the time.