It is narrated from Hazrat Aisha (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: If a woman marries without the permission of her guardian, her marriage is not valid, and the ruler will be the guardian of the one who has no guardian.