Deuteronomy 25:2
25:2 Then, if the guilty person is sentenced to a beating, the judge shall force him to lie down and be beaten in his presence with the number of blows his wicked behavior deserves.
Deuteronomy 15:8
15:8 Instead, you must be sure to open your hand to him and generously lend him whatever he needs.