Fair-weather Friend

A person who is dependable in good times but unreliable in times of trouble.

Examples:

  • You can't rely on Sarah—she's strictly a fair-weather friend.

Origin: Early 1700s