For the Palestinian people, it was encoded in UN Resolution 194.https://en.wikipedia.org/wiki/United_Nations_General_Assembly_Resolution_194?wprov=sfla1