This would vary significantly by country. In some nations which follow Shari'a law, unless he chooses not to exercise the right, upon divorce the father gets custody.