The warning from Nigeria and Ghana underscores the ongoing tensions related to xenophobia in South Africa, which has historically affected many African nationals. This diplomatic stance reflects a growing solidarity among West African nations in addressing the issue.