It has never been done before, but now we have lived through it. Saudi Arabia granted Sophia, an AI robot, citizenship rights. This means legal rights for a robot. Which puts into question several things like: From a legal standpoint, would this mean that we can no longer shut the robot down? Will the robot have legal rights equal to those of a human being in a courtroom? Etc.
Following its lead shortly after, Japan also granted their AI chat robot, Shibuya Mirai, residency in Japan. A residency right that came with a birth certificate.
Depending on how much more time God grants the world, these unprecedented events may have an impact in the end times.