Saluting the flag, honoring officers, and shaving beards when in the army

Question: What is the ruling on saluting the flag, honoring officers, and shaving beards when in the army?

Answer:  Saluting the flag is not permissible; it is a Bid`ah (innovation in religion) and the Prophet (peace be upon him) said, Anyone who does something in this matter of ours (the religion) that is not from it, it will be rejected. Related by Al-Bukhaaree and Muslim. However, honoring officers, or anybody else, by paying them their due respect without being excessive is permissible… read more here.

Standing up as a way of honoring the national anthem or flag

Question: Is it permissible to stand in honor of a national anthem or flag?

Answer: It is not permissible for a Muslim to stand in honor of a national anthem or flag; this is a repudiated Bid‘ah (innovation in religion) as it did not happen during the time of the Messenger of Allaah (peace be upon him) or that of the Rightly-Guided Caliphs (may Allaah be pleased with them)… read more here.