Is beating your wife legal in Muslim countries?

No its not. in fact it is considered illegal and it rarely happens in any Islamic nations. This could jeopardize marriage and overall, the people and the religion of Islam are against beating wives.