Prophet Muhammad (PBUH&HP) took Imam Ali (AS) under his own guardianship and said: " Ali (AS) and I are the roots of the same tree."
Imam Ali (AS) also supported Prophet Muhammad (PBUH&HP) when he was ordered to announce his mission publicly, starting with his close relatives. In return, Prophet Muhammad (PBUH&HP) declared him as his brother, executor of his will (Wasi), and successor.