Tobit was a righteous man. His story is told in the book of the Bible that bears his name….

Tobit is a man who performs many acts of charity, but the most dangerous is his burial of the dead, particularly strangers, and, notably, those who have been executed.
---
Touching the dead rendered one impure for a period of time. Although it was a necessary thing to do, performing the act for strangers is a profound act of charity. Indeed, Tobit is forced to sleep outside after performing the burial because he is impure, and he winds up blind as a result.
Some of the bodies buried by Tobit have been cast “beyond the wall,” where the unjust would have been thrown. It’s interesting to note, however, that the only place in the law where rapid burial is explicitly commanded is in the case of criminals who have been executed….