Could people outside a prophet’s own nation benefit from his message?
Yes. A prophet addressed his own people first, but others living around him could also accept his message and benefit from it.
Some people think that a prophet sent to a particular nation has nothing to say to anyone else. That view is too narrow. His message was addressed first of all to his own people. But no one living near him who recognised the truth was excluded from it.
The best example is in the first verse above. Moses (as) was sent to the Children of Israel. Even so, a man from Pharaoh’s people believed in him. For a long time he kept his faith secret. But when they planned to kill Moses (as), he stood up and spoke to his people with great wisdom.
His reasoning still holds today. If someone says that God has spoken to him, no one can verify it. If he is lying, he bears the consequences before God himself, and no one needs to persecute him for it. If he is telling the truth, then what he warns of will overtake his opponents. So whoever does not want to believe him should at least leave him in peace. That is the wisest course.
With the Holy Prophet Muhammad (saw) the framework changed. His message is meant for all people from the very beginning. Yet even before him, God’s guidance was open to anyone who sincerely accepted it.