Did Arabs fought against Mahmoud Ghazni to defend Somnath
When Mahmud of Ghazni attacked the Somnath Temple, Arabs joined in the defence of the temple and died to protect it. The fact that Somnath was a Hindu temple did not matter to them.
That idea that Arabs died to protect Somnath temple from Mahmud Ghazni originates from a 20th century fictional novel. According to real historical records, Arabs actually provided valuable intelligence to Mahmud Ghazni.