I don't think that's true. Algebra has history that goes way back to Babylonian times, long before Islam.
From https://en.wikipedia.org/wiki/History_of_algebra
> The origins of algebra can be traced to the ancient Babylonians,[6] who developed a positional number system that greatly aided them in solving their rhetorical algebraic equations. The Babylonians were not interested in exact solutions, but rather approximations, and so they would commonly use linear interpolation to approximate intermediate values.[7] One of the most famous tablets is the Plimpton 322 tablet, created around 1900–1600 BC, which gives a table of Pythagorean triples and represents some of the most advanced mathematics prior to Greek mathematics.[8]
Islam is much more recent than that. From https://en.wikipedia.org/wiki/Islam#History
> Muhammad and the beginning of Islam (570–632)