The ideal existed since antiquity, but — as today — wasn’t consistently practiced.
“Do not mistreat or oppress a foreigner, for you were foreigners in Egypt.” — Exodus 22:21
“The foreigner residing among you must be treated as your native-born. Love them as yourself, for you were foreigners in Egypt. I am the LORD your God.” — Leviticus 19:34
“And I charged your judges at that time, ‘Hear the disputes between your people and judge fairly, whether the case is between two Israelites or between an Israelite and a foreigner residing among you.’” — Deuteronomy 1:16
The ideal existed since antiquity, but — as today — wasn’t consistently practiced.
“Do not mistreat or oppress a foreigner, for you were foreigners in Egypt.” — Exodus 22:21
“The foreigner residing among you must be treated as your native-born. Love them as yourself, for you were foreigners in Egypt. I am the LORD your God.” — Leviticus 19:34
“And I charged your judges at that time, ‘Hear the disputes between your people and judge fairly, whether the case is between two Israelites or between an Israelite and a foreigner residing among you.’” — Deuteronomy 1:16
(All quotations NIV.)
The classical world also had related norms of xenia and hospitium.