Srila Prabhupada explains how to understand the apparent tribulations of a pure devotee
When something is arranged by the Supreme Personality of Godhead, one should not be disturbed by it, even if it appears to be a reverse according ot one’s calculations. For example, sometimes we see into difficulty, just as Haridasa Thakura was. He was a great devotee who came into this material world to execute the will of the Lord by preaching the Lord’s glories. But Haridasa was punished at the hands of the Kazi by being beaten in twenty-two marketplaces. Similarly, Lord Jesus Christ was crucified, and Prahlada Maharaja was put through so many tribulations. The Pandavas, who were direct friends of Krsna, lost their kingdom, their wife was insulted, and they had to undergo many severe tribulations. Seeing that all these reverses affect devotees, one should not be disturbed , one should simply understand that in these matters there must besome plan of the Supreme Personality of Godhead. The Bhagavatam’s conclusion is that a devotee is never disturbed by such reverses. He accepts even reverse conditions as the grace of the Lord. One who continues to serve the Lord even in reverse conditions is assured that he will go back to Godhead, back to the Vaikuntha planets. Lord Brahma assured the demigods that there was no use in talking about how the disturbing situation of darkness was taking place, since the actual fact was that it was ordered by the Supreme Lord. Brahma knew this because he was a great devotee; it was possible for him to understand the plan of the Lord.
SB 3.16.37 P The Two Doorkeepers of Vaiku