How old is your daughter and what form of discipline did you use?
Nearly all children pay more attention to their fathers or even other male caretakers. Men usually have a more authorative presence because of their work experience combined with the social expectation from the time that they are children to be tough. Their voice is deeper which sounds more authoritive. And they are around less and so the child doesn't get as used to them as to their mother.
To be taken seriously everyone has to be firm but unemotional as well as be consistent in enforcing consequences over a period of time.
I'm going to assume that your daughter is either a toddler or a preschooler. All kids this age test out hitting. What usually works is to grab their hand and tell them that hurts and not to do it. If they hit while you're in the process of doing something stop that activity until they can be calm enough not to hit. For some parents using a time out works.
And teach an alternative way to express anger. Learning not to hit will take time. A child's mind does not work the same way that an adult's mind works. They learn by repetition. It's true that adults learn some things by repetition but we mostly learn thru our ability to think; understand and problem solve. Children learn how to assess the situation, see the problem, and understand how to solve it only over a period of years and they're not good at it until they're in their teens. Even then their brain has to have more growth to be able to make consistently good decisions in some areas. That is what is called maturity.
A few children will learn after being told once to not hit. For most it takes longer. Because they are not only having to learn that hitting is wrong but also how to manage their feelings in a more acceptable way. They will learn more quickly when the parent can consistently discipline without hitting and without anger. Consistency, in this context, means use one consequence only every time that it happens. If after a couple of weeks that consequence doesn't work try a different one.
I do not see how hitting a child back teaches them to not hit. To me it says hitting is OK. If Mommy hits, why can't I? It might work if you talk about how hitting hurts and show the child how it hurts in that context that once. If discipline is a slap then it makes no sense to require that the child not slap. We are their role models.