It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Whoever flees from two (enemies) has fled, and whoever flees from three has not fled."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11105