what type of figurative language is

If the shoe fits, wear it

The figurative language used in the phrase "If the shoe fits, wear it" is an idiom.