The only way to stop any pain in your life is to accept the fact that nothing is yours, nothing was yours, and nothing will ever be yours. They are worldly attachments; given by Allah, belonging to Allah and returning back to Allah.