Regarding His saying: "Or does man have whatever he wishes?" This is because of the joy of the polytheists in what Satan cast upon the tongue of the Prophet regarding the mention of their gods. Tafsir of Surat al-Najm from verse 26 to verse 30.
قَوْله: ﴿أَمْ لِلإِنسَانِ مَا تَمَنَّى﴾ وَذَلِكَ لفرح الْمُشْركين بِمَا ألْقى الشَّيْطَان على لِسَان النَّبِي من ذكر آلِهَتهم. تَفْسِير سُورَة النَّجْم من الْآيَة ٢٦ إِلَى الْآيَة ٣٠.