Regarding others as yourself
Two traditions ask you to treat a neighbor, or another family's children, the way you treat your own. This only shows where two texts from different times and places happen to meet, not that the two traditions are the same.
Judaism, Christianity
Leviticus 19:18원수를 갚지 말며 동포를 원망하지 말며 이웃 사랑하기를 네 몸과 같이 하라 나는 여호와니라
개역한글Thou shalt not avenge, nor bear any grudge against the children of thy people, but thou shalt love thy neighbour as thyself: I am the LORD.
KJVThou shalt not take vengeance, nor bear any grudge against the children of thy people; but thou shalt love thy neighbor as thyself: I am Jehovah.
ASVYou shall not take vengeance, nor bear any grudge against the children of your people; but you shall love your neighbor as yourself. I am Yahweh.
WEBKorean Bible Society, copyright lapsed (Gaeyeok Hangeul) / 1611, 1901, 1997 editions, public domain (three English versions)
Confucianism
Mencius, King Hui of Liang I老吾老,以及人之老;幼吾幼,以及人之幼。天下可運於掌。
한문 원문Explanation (not a translation) Honor your own elders and let that same care reach the elders of others, cherish your own children and let that reach the children of others, and the whole world can be moved as easily as something turned in the palm of your hand.
Classical Chinese original text, public domain (no copyright)