We are promised delivery from affliction, not always now but in God's timing.
Psalm 34:17-20 King James Version
17 The righteous cry, and the Lord heareth, and delivereth them out of all their troubles.
18 The Lord is nigh unto them that are of a broken heart; and saveth such as be of a contrite spirit.
19 Many are the afflictions of the righteous: but the Lord delivereth him out of them all.
20 He keepeth all his bones: not one of them is broken.
We need to pray for the afflicted.
James 5:13-14 King James Version
13 Is any among you afflicted? let him pray. Is any merry? let him sing psalms.
14 Is any sick among you? let him call for the elders of the church; and let them pray over him, anointing him with oil in the name of the Lord:
Affliction will cease when Christ returns.
2 Thessalonians 1:4-7 King James Version
4 So that we ourselves glory in you in the churches of God for your patience and faith in all your persecutions and tribulations that ye endure:
5 Which is a manifest token of the righteous judgment of God, that ye may be counted worthy of the kingdom of God, for which ye also suffer:
6 Seeing it is a righteous thing with God to recompense tribulation to them that trouble you;
7 And to you who are troubled rest with us, when the Lord Jesus shall be revealed from heaven with his mighty angels,.