When I became a Judge of Allahabad High Court in 1991 I said in my welcome speech to the High Court Bar Association that equity (that is, human feelings) will always influence my judicial verdicts.
I then quoted the following Sanskrit shlokas of Brihaspati :
" Kevalam shaastram aashritya na kartavyo hi nirnayah
Yuktiheene vichhaare tu dharmahaani prajaayate
Saadhu asaadhu, chauro achauro prajaayate vyavahaaratah
Yuktim vinaa vichaare Maandavyasya chaurataam gatah"
which means :
"The decision should not be given by merely following the letter of the law
For if the decision is wholly unreasonable, injustice (dharmahaani) will follow
By merely following the letter of the law a good man may be declared a bad man, and an innocent man a thief
Just as Maandavya, an innocent man, was held to be a thief"
The story of Rishi Maandavya was that one day he was doing meditation in his aashram when a thief, who was fleeing, threw some stolen goods there, and fled. The king's men, who were pursuing the thief, came to the aashram and arrested Rishi Maandavya, who was taken to the king who ordered him to be hanged.
Throughout my judicial career as a Judge for 20 years it was this approach and these shlokas of Brihaspati which guided me. And in my various appeals for pardon to several persons which I made recently it was this spirit which motivated me