is this an example of ethnocentrism

"Why did you go to England for your education? Afghanistan doesn't need your foreign ideas."

Yes -- this is ethnocentrism if the speaker is an Afghan.

the speaker is an Afghan solider thank you

You're welcome.

Yes, the statement you quoted can be considered an example of ethnocentrism. Ethnocentrism refers to the tendency to judge or evaluate other cultures based on the standards and values of one's own culture, considering it superior to others. In this case, the remark suggests that going to England for education is unnecessary because the speaker believes that Afghanistan does not require foreign ideas.

To identify ethnocentrism in a statement, we can look for indicators such as the exclusion or dismissal of ideas, practices, or beliefs from other cultures, particularly when they are considered inferior or unnecessary compared to our own.