1 Samuel chapter 30.
God can turn cursing into blessings.
David after loosing everything, did not sit down to cry and complain or talk to his friends. He encouraged himself in the Lord and sought God's wisdom and persued the Amalekites.
In times of trouble, turn to God for wisdom and allow His presence to comfort you. When you constantly focus on what the enemy has done, you are magnifying the works of the enemy.