It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) said: "The slave who marries without the permission of his masters is an adulterer."
Brief Explanation
(Commentary on Hadith 2270)
The madhhab of Imam Shafi’i and Imam Ahmad rahimahumullah is that such a marriage will be invalid. Imam Abu Hanifah rahimahullah said: the marriage will be valid, but it will be dependent upon the consent of the master or the Sayyid; if he grants permission, it will be enforced.
And Allah knows best.