Mesh deformation after armature parenting When I tried to set parent with automatic weights my mesh was deformed.
What did I wrong?
Your rig is not in its "rest pose". To set the current pose as the rest pose press Ctrl+A then apply as rest pose

Checkout this answer for more details: