When a child does wrong, a parent chastise them out of love.
Be reminded when you have to suffer the consequences for your wrong.
God loves you.
Hebrews 12:6-7 (KJV) – for whom the Lord loveth he chasteneth, and scourgeth every son whom he receiveth. If ye endure chasteneing, God dealeth with you as with sons; for what son is he whom the father chasteneth not?