First attested in the Durham Proverbs. Literally "in need you have to test your friends."
æt þearfe man sċeal frēonda cunnian