Suffering of one kind or another is inevitable in this life. Suffering comes to all both, good and bad alike.
Ecclesiastes 9:2 All things come alike to all: One event happens to the righteous and the wicked; To the good, the clean, and the unclean; To him who sacrifices and him who does not sacrifice. As is the good, so is the sinner; He who takes an oath as he who fears an oath.
Job sets us an example – a righteous man suffering through no fault of his own.
Job 5:7 Yet man is born to trouble, As the sparks fly upward.
Job 14:1 Man who is born of woman is of few days and full of trouble.
James 5:10 My brethren, take the prophets, who spoke in the name of the Lord, as an example of suffering and patience. 11 Indeed we count them blessed who endure. You have heard of the perseverance of Job and seen the end intended by the Lord—that the Lord is very compassionate and merciful.
For those in a covenant relationship with God by belief and obedience to the gospel preached by Jesus Christ, suffering is a trial of faith, as Peter points out:
1 Peter 1: 7 that the genuineness of your faith, being much more precious than gold that perishes, though it is tested by fire, may be found to praise, honour, and glory at the revelation of Jesus Christ,
The writer to the Hebrews exhorts:
Hebrews 12:4 You have not yet resisted to bloodshed, striving against sin. 5 And you have forgotten the exhortation which speaks to you as to sons: "My son, do not despise the chastening of the LORD, Nor be discouraged when you are rebuked by Him; 6 For whom the LORD loves He chastens, And scourges every son whom He receives." 7 If you endure chastening, God deals with you as with sons; for what son is there whom a father does not chasten? 8 But if you are without chastening, of which all have become partakers, then you are illegitimate and not sons. 9 Furthermore, we have had human fathers who corrected us, and we paid them respect. Shall we not much more readily be in subjection to the Father of spirits and live? 10 For they indeed for a few days chastened us as seemed best to them, but He for our profit, that we may be partakers of His holiness. 11 Now no chastening seems to be joyful for the present, but painful; nevertheless, afterward it yields the peaceable fruit of righteousness to those who have been trained by it.
In Christ we have the certain hope of resurrection to eternal life in the kingdom of God when Jesus Christ returns. When we are promised an end to suffering and endless joy for eternity.
Romans 8:18 For I consider that the sufferings of this present time are not worthy to be compared with the glory which shall be revealed in us.
Revelation 21:4 "And God will wipe away every tear from their eyes; there shall be no more death, nor sorrow, nor crying. There shall be no more pain, for the former things have passed away."
Please read, "Why Does God Allow Suffering?" https://www.thisisyourbible.com/library/show/179
I hope you find this helpful.