Srimad-Bhagavatam: Canto 8 - Chapter 1 - Verse 4
पुंसां श्लाघ्यतमं मन्ये दण्डमर्हत्तमार्पितम् ।यं न माता पिता भ्राता सुहृदश्चादिशन्ति हि ॥ ४ ॥
puṁsāṁ ślāghyatamaṁ manyedaṇḍam arhattamārpitamyaṁ na mātā pitā bhrātāsuhṛdaś cādiśanti hi
Although a father, mother, brother or friend may sometimes punish one as a well-wisher, they never punish their subordinate like this. But because You are the most worshipable Lord, I regard the punishment You have given me as most exalted.
Punishment meted out by the Supreme Personality of Godhead is accepted by the devotee as the greatest mercy. “One who seeks Your compassion and thus tolerates all kinds of adverse conditions due to the karma of his past deeds, who engages always in Your devotional service with his mind, words and body, and who always offers obeisances to You is certainly a bona fide candidate for liberation.” (Bhāg. 10.14.8) A devotee knows that so-called punishment by the Supreme Personality of Godhead is only His favor to correct His devotee and bring him to the right path. Therefore the punishment awarded by the Supreme Personality of Godhead cannot be compared to even the greatest benefit awarded by one’s material father, mother, brother or friend.