Al-Hasan and Ibrahim said: If a slave marries without his master's permission, and then the master grants permission, it is valid.