In Nahj-ul-Balagha we come across certain passages which indicate the reaction of Ali to the election of Abu Bakr as the Caliph. When the meeting at Saqffa Bani Saada was brought to the notice of Ali by some one, Ali asked him as to what did the Ansar ask for. He was told that the Amir should be elected from them, and if the Muhajireen also desired the office, one Amir might be elected from the Ansar and one from the Muhajireen. Thereupon Ali said, "Was it not brought to their notice that the Holy Prophet had willed that after him the Ansar should be well treated, and if they made any lapse it should be overlooked. Ali was asked how did this will establish that the Caliph was not to be elected from among the Ansars. Ali said that if the Ansar were to have the caliphate there was no point in asking those in power to pay due regard to the Ansars did not arise. Ali then inquired as to what argument the Muhajireen had advanced in support of their claim to the caliphate. He was told that the Muhajireen based their claim on the ground that they belonged to the tree to which the Holy Prophet belonged. Thereupon Ali said, "What a pity that they look to the tree, but overlooked its fruit". The implication was that the Muhajireen should have offered the caliphate to him and not to anyone else.
In a passage in Nahj-ul-Balagha, Ali is said to have expressed his reaction to the election of Abu Bakr in the following terms: "The son of Abu Qahafa has assumed the mantle of the caliphate forcibly although he knew that I was essential for the caliphate as the handle is for the grinding stone which moves it. In Islamic learning I excel everyone else, and the caliphate should have come to me as a matter of course. At this disregard of my right I became confused. I began to think whether I should assert my claim, or whether I should practice forbearance and patience after a good deal of thinking I decided to adopt the later course".