Srimad Bhagavatam Canto 08, Chapter 22, Text 04

SB 8.22.4

pumsam slaghyatamam manye
 dandam arhattamarpitam
yam na mata pita bhrata
 suhrdas cadisanti hi
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
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.
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Punishment meted out by the Supreme Personality of Godhead is accepted by the devotee as the greatest mercy.
 
tat te ’nukampam susamiksamano
 bhuñjana evatma-krtam vipakam
hrd-vag-vapurbhir vidadhan namas te
 jiveta yo mukti-pade sa daya-bhak
 
“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.” (Bhag. 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.
Srimad Bhagavatam Canto 08, Chapter 22, Text 03
Srimad Bhagavatam Canto 08, Chapter 22, Text 05