Congress told the Indian people that WW2 wasn’t their fight, and the Muslim League told the Muslims of India that it was their fight.
Muslims in total accounted for over 25% of the British Indian army by 1945, at over 650,000
The majority of the Free French army were Muslims from Africa too- that added in another 200,000 at least.
That gives you a grand total of nearly 850,000 in total between British India and France alone. I haven’t even counted Dutch colonial forces from what is now Indonesia, nor have I counted Muslim Africans in British service.
In German service, you by contrast had about 13,000 Muslims from Bosnia and 427,000 Ostruppen, mainly Russian Muslim prisoners who had been persuaded to fight against Communism and communism’s allies.
In total, over twice as many Muslims fought against the Germans as fought for them.
In the end, particularly in India, and to a lesser extend in Africa, those Muslims who sided with the Allies were proven to be right as most Muslim countries were able to peacefully secure their independence after the war.
However, going into the war, this was no sure thing. And siding with the Germans had one attractive lure for Muslims of all races and nationalities, be they Soviet, Indian, or Arab: The Germans were the only people in the world who were managing to fight against the governments that were denying political rights to the majority of the world’s Muslims.
That made for an easy propaganda argument. The Germans could, with a fair degree of factual accuracy, argue to Muslims that their victory would deliver the world’s Muslims from the oppression they were experiencing under the Allies.
For example, in 1944, Japan promised full Indonesian independence. The Allies, on the other hand, not only refused to tolerate the idea of Indonesian independence, but even financed the Dutch reoccupation and provided troops for it. In the end, Indonesia had to fight a bloody revolution to obtained the independence from the victorious Allies that it had been promised by the Axis.
Other instances during the war strengthened Germany’s argument that Muslims should fight for Germany. In 1944 Russia ethnically cleansed Crimea of its entire Muslim population. Germany had never carried out any similar activity against Muslim populations it occupied, and spun this to recruit Muslims from amongst its Russian prisoners.