I came across this in Chapter Six of Niccolo Machiavelli’s famous The Prince. It is taken from The Portable Machiavelli, translated by Peter Bondanella and Mark Musa, and published by Penguin Books.
I say, therefore, that in completely new principalities, where there is a new prince, one finds in maintaining them more or less difficulty according to the greater or lesser skill of the one who acquires them. And because this act of transition from private citizen to prince presupposes either ingenuity or Fortune, it appears that either the one or the other of these two things should, in part, mitigate many of the problems; nevertheless, he who has relied upon Fortune less has maintained his position best. Things are also facilitated when the prince, having no other dominions to govern, is constrained to come to live there in person. But to come to those who, by means of their own skill and not because of Fortune, have become princes, I say that the most admirable are Moses, Cyrus, Romulus, Theseus, and the like. And although we should not discuss Moses, since he was a mere executor of things ordered by God, nevertheless he must be admired, if for nothing but that grace which made him worthy of talking with God. But let us consider Cyrus and the others who have acquired or founded kingdoms; you will find them all admirable; and if their deeds and their particular institutions are considered, they will not appear different from those of Moses, who had so great a guide. And examining their deeds and their lives, one can see that they received nothing but the opportunity from Fortune, which then gave them the material they could mold into whatever form they desired; and without that opportunity the strength of their spirit would have been extinguished, and without that strength the opportunity would have come in vain.
It was therefore necessary for Moses to find the people of Israel slaves in Egypt and oppressed by the Egyptians in order that they might be disposed to follow him to escape this servitude.