Like most fathers, I disciplined my children when they were young and disobedient.
We can think about discipline in either of two ways: firstly, as punishment for sinning, which it most certainly is. When an evil act is committed, it deserves a penalty. Justice cries out for it, and if justice doesn’t make its voice heard, a child’s siblings generally will. But secondly, most acts of discipline are also designed to encourage repentance. A good father desires that the offender learn his lesson and stop offending, both for his own sake and for the sake of those he offends against.
Both these aspects of the disciplinary process are in play in God’s dealings with Israel in Amos 4.