Hegel discusses the parable of the slave & master in his Phenomenology of Spirit. In the form of a hegelian dialectic, this takes the form thesis=slave, antithesis=master and synthesis=equals. This has been interpreted in atheistic terms where the slave term is interpreted as Man, the master term as God, and equals as Man becomes God, that is master of his own destiny.
Given that Nietzsche was German, the high esteem that Hegel was held in during his time and after, and that he was born just after Hegels death one suppose that there is likely to be some influence.
One could even suppose, the interpretation offered above is a retrospective refitting of Nietschzes emancipation of Man from God, and his master & slave morality onto Hegels master-slave dialectic.
Is there any evidence that Nietzches master-slave moralities is descended from Hegels, other than a correspondance of name and proxmity of geography and chronology?
Further, it seems Hegels master-slave dialectic is at least descriptively correct; for he suggests that two parties come together, one over-powers the other; tat is one is master & the other slave; but by the very condition of what slavery is, the slave eventually masters the master. Now, if Nietzsche is correct in characterising Christian-Judeo morality as slave morality in opposition to Roman-Greek master morality, one can predict via Hegel that Christian-Judeo morality would vanquish Rome, whereas Nietszche can only resent that this became true.