The text is a proverb or saying that expresses the idea that true friends are those who are there for you in difficult times. It does not exploit different meanings of a word or similar-sounding words for humorous effect.
A friend is best found in adversity .