They abided by the gist of these texts while dealing with...
They abided by the gist of these texts while dealing with those who were entrusted with faring with the affairs of the Muslims. While being aware of the fact that they themselves were more worthy of being in their shoes, they tasted the bitterness of colocynth, hoping they might be able one day to lead them to the Right Path.
The ascension of those individuals to power was more painful to them than the blows of sharp swords, yet they tolerated it only to fulfill the covenant, discharge the commitment, and carry out their duties as far as the Shari’a is concerned, favouring - while opposing such rulers - to prefer what is most important over what is more important. For this reason, the Commander of the Faithful (as) tried his best to provide counsel to all three caliphs, exerting himself in providing them with advice.
Whoever acquaints himself with his policy during their epoch will come to know that he, having lost all hope to get his indisputable right to succeed the Messenger of Allah (pbuh), willingly took to reclusion, preferring to make asylum with those in authority. He did not fight them while seeing his promised throne in their grip, nor did he oppose them openly.
He did so only in order to maintain the solidification of the nation and safeguard the creed, always keeping the religion's interest in mind, preferring the life hereafter to this one. He suffered from agonies which nobody else suffered. He was agonized by two calamities: the caliphate in its texts and commandments was earnestly pleading to him in a heart-rending voice on one hand, and, on the other hand, oppressive discord was warning him against a possible mutiny in the peninsula.
There was a possible danger of bedouin Arabs renouncing their religion, thus annihilating the Islamic creed. The faith was being threatened by the hypocrites of Medina in whose nature hypocrisy was immersed, and who were aided by the hypocritical bedouins around them, according to the text of the Book (Qur'an).
Nay, the latter party was even worse in disbelief and hypocrisy than the first, so much so that it was better they did not know the limits of what Allah had revealed to His Messenger (pbuh). The loss of the Prophet (pbuh) emboldened the latter, and Muslims became in the aftermath like frightened cattle in a winter night, surrounded by wolves and ferocious brutes.