The present invention relates to a motorized hand tool having a motor with a motor front casing adapted to resist rotation of the motor with respect to a housing of the tool, without use of extra fasteners or machining operations. The motor front casing includes first and second flanges and first and second tabs that protrude radially outwardly and that are disposed proximal to respective ends of the flanges. When the motor is installed, the tabs abut a ratchet head housing and are sandwiched between the ratchet head housing and a rib if a tool housing to resist motor rotation and ensure all forces are distributed across a whole face of the rib to minimize deformation of the rib and/or tool housing.