It is narrated from Salih, the freed slave of Tuamah, that regarding bandits, Ibn Abbas (may Allah be pleased with him) said: When they commit murder and also loot wealth, they will be killed and crucified; and when they commit murder but do not loot wealth, they will be killed but not crucified; and when they loot wealth but do not commit murder, their hands and feet will be cut off from opposite sides; and when they only frighten travelers without looting wealth, they will be exiled.
Hadith Referenceمسند الإمام الشافعي / كتاب الحدود / 1599
Hadith Takhrijاسناده ضعیف، لضعف شيخ الشافعي اخرجه البيهقي: 283/8 - وفى المعرفة السنن والآثار له (5192)۔ وعبد الرزاق (18544) وابن أبي شيبة (29009)، (32781)۔