Deuteronomy 22:7

Amplified Bible (AMP)
You shall certainly let the mother go, but you may take the young for yourself, so that it may be well with you and that you may prolong your days.

Read Deuteronomy 22:7 in other translations