Shaykh Muḥammad Amān al-Jāmī:

A philosopher may ask you an awkward question, I have actually been asked this question on more than one occasion, Is Allah ﷻ capable of making unto himself a partner?

One should be cautious when answering such a question. It is not to be answered by saying ‘no’ or ‘yes’, but rather it is answered by saying the Ability of Allah ﷻ has no relativity to such absurdities due to the fact that they do not befit (the grandeur of) Allah The Most High; not that Allah ﷻ is unable to bring such things into existence. This is the answer.