12 Joyful are those you discipline, Lord,
those you teach with your instructions.
13 You give them relief from troubled times
until a pit is dug to capture the wicked.
As we look at this verse from Psalms we can see David is saying that God is in His people's favour to help and give joy. It also looks alittle bit of telling the future some how it says in verse 13. That could just also mean those that are against the Lord will be punished, but also reminds me of the the wicked one in Revelation about being thrown in the the bottomless pit.