When hard things happen due to my choices, the choices of others, or just life circumstances, I frequently have to remind myself that God knows each of us, and the choices we will make. He knew this difficulty would occur, and He has accounted for it in His plan. As well, He knows my suffering and will help me through it if I turn to Him.
2 Nephi 9
“20 O how great the holiness of our God! For he knoweth all things, and there is not anything save he knows it. 21 And he cometh into the world that he may save all men if they will hearken unto his voice; for behold, he suffereth the pains of all men, yea, the pains of every living creature, both men, women, and children, who belong to the family of Adam.”
https://www.lds.org/scriptures/bofm/2-ne/9?verse=20-21&lang=eng#p20