A stator for an electric motor has a stator core, a winding and a housing enclosing the stator core and winding. The stator core has a yoke and a plurality of poles extending inwardly from the yoke. The winding formed by coils wound about the poles of the stator core. The housing grips the stator core and has at least one inwardly deformed portion that retains the stator core in the housing and prevents rotational movement of the stator core relative to the housing. A method of producing the stator is also disclosed.