When a prisoner is discharged by reasons of having served his or her sentence, or upon receiving a pardon or parole, he or she shall be furnished transportation, or its equivalent in money, back to the place from which the prisoner was sentenced.