If you are being disciplined by the Lord, you are being loved by him. He wants the best things for us, so when we stray he brings us back- Receive his discipline.
Hebrews 12:10 For they disciplined us for a short time as it seemed best to them, but he disciplines us for our good, that we may share his holiness.