Ibn Abbas (may Allah be pleased with him) reported that the Prophet ﷺ said: Allah Almighty created a rod of light forty thousand years before the creation of the world. From half of it He created me and from the other half He created Ali (may Allah be pleased with him).
The narrator of this story is Abu Dhakwan, who is completely unknown (majhul). Al-Dhahabi states that this narration is false. He narrated it from Ahmad bin Amr. Which Ahmad bin Amr this is, nothing is known about him. This Ahmad bin Amr narrated the hadith from his namesake, Ahmad bin Abdullah. Coincidentally, there are hundreds of people named Ahmad bin Abdullah. Ahmad bin Abdullah narrated this tale from Abdullah bin Amr. And Ubaidullah bin Amr is not a known person. In reality, these are all fictional heroes, whose existence is not necessarily real. Ubaidullah narrated this report from Abd al-Karim al-Jazari, who is famous for narrating rejected reports (munkarat). Abd al-Karim narrated it from Ikrimah, who is the freed slave of Ibn Abbas (may Allah be pleased with him) and is a well-known Kharijite. If he had really heard and narrated such a report, perhaps matters would not have reached this point.
Yes, the thing to think about and understand is: when and from what was Ali (may Allah be pleased with him) created? Sometimes he is created from the earth’s soil, sometimes from the soil of Paradise, sometimes from a tree, and sometimes from light. Sometimes the Messenger ﷺ shares with him in the creation, sometimes his wife and sons also share in it, and sometimes even his followers. After all, what exactly is he? To this day we are unable to understand this. If anyone can, let him guide us.