What is the ruling in Shariah regarding a person who pays allegiance to his king by bowing before him? Is he a Muslim? Is his salat and fasting accepted by Allah?
In the Name of Allah, the Most Gracious, the Most Merciful.
It is makrooh tahreemi (i.e. prohibited and sinful) to bow before the king or anyone else, as such an act is the practice of non-Muslims. If a person did this, he committed a sinful and prohibited act and he must repent to Allah Ta'ala and ask for His forgiveness.
Although bowing before the king is a sinful and prohibited act, if a person does do it, he does not become a kafir. The family, friends and associates of such a person should kindly admonish him not to do it again. 
And Allah knows best.
Mufti Faizal Riza
Darul Ifta Australia
مكروه؛ لأنه يشبه
فعل المجوس (المحيط
البرهاني: 8/ 117 ،