Sometimes the people with the worst past create the best future. (Umar Ibn Al-Khattab RDI)
And we will surely test you with something of fear and hunger and a loss of wealth and lives and fruits, but give good tidings to the patient. Surah Al-Baqarah 2:155
A beautiful lesson from Surah Yusuf, is that even if the closest people in your life go against you, as long as you trust Allah and have patience, He will raise your status and open doors for you in the darkest moments. Trust Allah.
When someone does something that hurts you, make a promise to yourself and to Allah SWT that you will never do the same thing to anyone else.