come in handy

[come in handy] {v. phr.}, {informal} To prove useful.

Robinson Crusoe found tools in the ship which came in handy when he built a house.

The French he learned in high school came in handy when he was in the army in France.