Ali ibn Abi Talib was the first child to accept Islam, and the third Muslim after Khadija and Abu Bakr. He lived with the Prophet from a young age, marrying his daughter Fatima, with whom he had two sons. Ali became the fourth caliph and performed his duties honorably, always putting the needs of the Muslim community before his own.