9 month old hitting


My 9 month old just recently started hitting and slapping my husband and me in the face. I am stern and say no your hurting mommy. We don’t hit, that’s not nice. Then we put her down to show her we aren’t having it. Any tips or advice? It’s been maybe a week or so. Is this a phase?