Narrated Jabir bin 'Abdullah: The Verse:--"When two parties from among you were about to lose heart, but Allah was their Protector," (3:122) was revealed concerning us, and we were the two parties, ie Banu Haritha and Banu Salama, and we do not wish (that it had not been revealed) or I would not have been pleased (if it had not been revealed), for Allah says:--".Allah was their Protector".
This hadith also teaches us to be grateful for all of the blessings that come our way as well as those times when things don't go our way but still turn out alright because of His protection. It reminds us to never forget His mercy upon us and to always remain thankful for it no matter what happens in life. Lastly, this hadith encourages us to have faith in Him even during difficult times because He will never leave nor forsake His people who put their trust in Him alone.