Here we will see Section 321 IPC | Indian Penal Code.
Voluntarily causing hurt.— Whoever does any act with the intention of thereby causing hurt to any person, or with the knowledge that he is likely thereby to cause hurt to any person, and does thereby cause hurt to any person, is said “voluntarily to cause hurt”.