2 If their owner is not near, or if you are not certain who he is, then take the beast to your house and keep it till its owner comes in search of it, and then you are to give it back to him.

Matthew Henry's Commentary on Deuteronomy 22:2

Commentary on Deuteronomy 22:1-4

(Read Deuteronomy 22:1-4)

If we duly regard the golden rule of "doing to others as we would they should do unto us," many particular precepts might be omitted. We can have no property in any thing that we find. Religion teaches us to be neighbourly, and to be ready to do all good offices to all men. We know not how soon we may have occasion for help.