Suffering, what is the reason?

Proverbs 20:30 Blows and wounds cleanse away evil, and beatings purge the inmost being.
 
EZE 14:23 "Then they will comfort you when you see their conduct and actions, for you will know that I have not done in vain whatever I did to it," declares the Lord God. (NASB, UNASB, YLT)
 
Now this is the minority opinion, most other translations have "without cause" instead of "in vain." But maybe "in vain" is correct here! And the sufferings of Judah being worse than the punishment of Sodom (Lam. 4:6), we may hope for all suffering, that it is not in vain.
 
Matthew 8:17  This was to fulfill what was spoken through the prophet Isaiah: "He took up our infirmities and carried our diseases."
 
I don't think Jesus just healed elect people...
 
God does bear suffering, and he does so for a good purpose:
 
Isaiah 53:4 Surely our griefs He Himself bore, And our sorrows He carried…
 
John 1:29 The next day he saw Jesus coming toward him, and said, "Behold, the Lamb of God, who takes away the sin of the world!"
 
And I think these verses may indeed include all sin and suffering...
 
"The problem of suffering has ever been a perplexing one. Why should suffering be necessary in a world that is governed by a perfect God? A God who not only has the power to prevent evil, but who is love. Why should there be pain and wretchedness, sickness and death? As we look out on the world and take cognizance of its countless sufferers, we are bewildered. This world is but a vale of tears. A thin veneer of gaiety scarcely succeeds in hiding the drab facts of life. Philosophizing about the problem of suffering brings scant relief. After all our reasonings we ask, Does God see? Is there knowledge with the Most High? Does he really care? Like all questions, these must be taken to the cross. While they do not find there a complete answer, nevertheless they do meet that which satisfies the anxious heart. While the problem of suffering is not fully solved there, yet the cross does throw sufficient light upon it to relieve the tension. The cross shows us that God is not ignorant of our sorrows, for in the person of his Son he has himself 'borne our griefs and carried our sorrows' (Isa. 53:4)! The cross shows us God is not unmindful of our distress and anguish, for becoming incarnate, he suffered himself! The cross tells us God is not indifferent to pain for in the Saviour he experienced it!"
 
"What then is the value of these facts? This: 'For we have not an high priest which cannot be touched with the feeling of our infirmities; but was in all points tempted (or tried) like as we are, yet without sin' (Heb. 4:15). Our Redeemer is not one so removed from us that he is unable to enter, sympathetically, into our sorrows, for he was himself 'the Man of Sorrows'. Here then is comfort for the aching heart. No matter how despondent you maybe, no matter how rugged your path and sad your lot, you are invited to spread it all before the Lord Jesus and cast all your care upon him, knowing that 'he careth for you' (1 Peter 5:7). Is your body wracked with pain? So was his! Are you misunderstood, misjudged, misrepresented? So was he! Have those who are nearest and dearest turned away from you? They did from him! Are you in the darkness? So was he for three hours! 'Wherefore in all things it behooved him to be made like unto his brethren, that he might be a merciful and faithful high priest' (Heb. 2:17)."
 
A.W. Pink
 
JOB 1:22 Through all this Job did not sin nor did he blame God.
 
EZR 9:15 O Lord, God of Israel, you are righteous! We are left this day as a remnant. Here we are before you in our guilt, though because of it not one of us can stand in your presence.
 
DA 9:14 The Lord did not hesitate to bring the disaster upon us, for the Lord our God is righteous in everything he does.