The Quran allowed the Prophet salla Allahu alaihi wa sallam to marry more than 4.

Not only that, he married women over 50 and they were all either divorced or widowed. His marriages were not of a man who was a womanizer.

Besides, all Prophets and Messengers had many wives such as David and Suleman peace be upon them.

I am a new revert to islam and my relatives are against this. When I try to teach them about islam they say about the marriage of prophet muhammad(saw) , that he married 11 wives. I just want to know that why he married those 11 wives while in the quran Allah commands the believers to marry till 4 wives. If the quran says to marry till 4 wives then why did prophet muhammad(saw) married 11 wives?