Discipline for a 3 year old hitting?

I’m at a loss. He hits to test me, then keeps doing it, I have tried EVERYTHING and nothing works. Open to suggestions.