Good idea to try catch her hands before the action, but avoid praise. Read Punished by Rewards, and the set of articles called The Price of Praise from Life Learning magazine.
Also, I wouldn't even use the word "hit" or "hitting."
I would hold the hands and just say loud and clear "Woops, here, you can bang the pillow."