In Surah 33:50 there is an exception under sharia for Muhammad as it pertains to marriage. One of the common replies is to defer to Solomon that there were always exceptions. I found a couple issues there though
1) Solomon was a king not a prophet (hence why he had a prophet) 2) there was no law regarding numbers of wives 3) Solomon was punished for breaking Gods covenant but it was because he started worshipping other gods
I would love to read the Muslim response/ dialogue on this matter