3 year old hitting

Sa

My 3 year old slapped me in the face today. Not angry-completely uncalled for and unprovoked. I was shocked. He has began hitting me more and more lately. No, we don’t do those behaviors at home. What does “gentle parenting” say to do about that?