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