Fall on one’s feet

Meaning: To be successful or lucky despite a difficult situation.

Example: She lost her job but fell on her feet and found a better one within weeks.