Islam Q & A: Respect for National Anthem or Flag

Playing or listening to national anthems is haraam. … It makes no difference whether what is played is songs or the national anthem or anything else.

…It is also a means that leads to shirk and is an imitation of the kuffaar in their reprehensible customs, and following them in their exaggeration about their presidents and in their ceremonies. The Prophet (peace and blessings of Allaah be upon him) forbade imitating them.