Exodus 22:3

Amplified Bible (AMP)
But if the sun has risen, there will be bloodguilt for him. The thief [if he lives] must make [full] restitution; if he has nothing, then he shall be sold [as a slave to make restitution] for his theft.

Read Exodus 22:3 in other translations