They acted according to their national destiny. When people do that, God is with them even if they are Muslims. But there are examples of the opposite as well, since you mention Muslims. Look at Bosnia.