Exodus 22:21–24

The law reminds Israel it was a foreigner in Egypt and forbids mistreating widows and orphans

21You shall not mistreat a resident alien or oppress him, for you were resident aliens in the land of Egypt.

22You shall not afflict any widow or orphan.

23If you do afflict him —for if he does cry out to me, I will surely hear his cry—

24and my anger will burn, and I will kill you with the sword, and your wives will become widows and your sons orphans.

Study it word by word

In its context

19Whoever lies with an animal shall surely be put to death.

20Whoever sacrifices to gods, other than to YHWH alone, shall be devoted to destruction.

…

25If you lend silver to my people, to the poor with you, you shall not be to him like a creditor; you shall not lay interest on him.

26If you ever take in pledge the cloak of your neighbor, you shall return it to him before the sun goes down,

Read all of Exodus 22

Its words in the original

Justice and mercy