Almost 2 year old

My almost 2 year old likes to hit us a lot what’s a good way to let him know it’s not right. I tell him no and try to tell him not to do so and that it’s wrong but he still does it. I am not sure what else to do any tips?