Does the Quran ever say "O Muhammad"?

No. The Quran never calls the Prophet ﷺ "O Muhammad". It addresses him as "O Prophet" 13 times and "O Messenger" twice (5:41 and 5:67).

Other prophets are called by name: "O Adam", "O Nuh", "O Ibrahim", "O Musa", "O Isa". His name, Muhammad, appears 4 times, but always about him, never as a call to him.

Al-Ahzab 33:45

يَٰٓأَيُّهَا ٱلنَّبِىُّ إِنَّآ أَرْسَلْنَٰكَ شَٰهِدًۭا وَمُبَشِّرًۭا وَنَذِيرًۭا

O Prophet, indeed We have sent you as a witness and a bringer of good tidings and a warner.

Al-Ma'idah 5:67

۞ يَٰٓأَيُّهَا ٱلرَّسُولُ بَلِّغْ مَآ أُنزِلَ إِلَيْكَ مِن رَّبِّكَ ۖ وَإِن لَّمْ تَفْعَلْ فَمَا بَلَّغْتَ رِسَالَتَهُۥ ۚ وَٱللَّهُ يَعْصِمُكَ مِنَ ٱلنَّاسِ ۗ إِنَّ ٱللَّهَ لَا يَهْدِى ٱلْقَوْمَ ٱلْكَٰفِرِينَ

O Messenger, announce that which has been revealed to you from your Lord, and if you do not, then you have not conveyed His message. And Allah will protect you from the people. Indeed, Allah does not guide the disbelieving people.

Read the surah

More Quran facts