The subject
(http://corpus.quran.com/documentation/ particleinna.jsp).ism inna is always in the accusative case mansūb (منصوب), and the predicatekhabar inna is always in the nominative case marfū (مرفوع)
What this means is that if the word anna is not used, then the word Muhammad will have the ‘u’ sound at the end. If the word anna is used, then the word Muhammad will have the ‘a’ sound at the end. In the kalimah, we say: Muhammadur Rasulullaah. In the tashahhud (in adhan and iqamah), we say: Ash-hadu anna Muhammadar Rasulullaah.