It is narrated in al-Kafi: Verily the Commander of the Faithful (AS) restricted imprisonment to only three cases: a man consuming the property of an orphan unlawfully, or usurping it, or a man who takes off with what he has been entrusted with.
الكافي : إنّ أميرَ المؤمنينَ (عَلَيهِ الّسَلامُ) كانَ لا يَرى الحَبْسَ إلّا في ثلاثٍ : رجُلٌ أكلَ مالَ اليَتيمِ، أو غَصَبهُ ، أو رجُلٌ اؤتُمِنَ على أمانَةٍ فَذَهبَ بِها.