As for looking at it from the social point of view...
As for looking at it from the social point of view, we say that the Holy prophet , through the introduction of a prominent leader did so in order to prevent any kind of dispute after him, with the formation of a firm defensive line ensuring the Islamic unity and preventing it from any bitter accident; and it was not possible to prevent every group after the death of the Prophet from having the claim that "The leader should be from us", except through the introduction and appointment of a divine leader.
These social calculations guide us towards he correctness and firmness of the theory of the appointment of the position of leadership to succeed after the Holy Prophet (p). The testimony of the statements given by the God's Messenger.
Based on this social ground among other considerations, the Holy prophet right from the early days of his mission to the last days of his life, time and again presented the matter concerning the one succeeding after him, and infact he had already appointed his successor during the beginning of his sacred mission (in the ceremony that he held for his relatives on the occasion of announcing his prophecy) and in addition to this, he also announced it during his last days in life- (when returning back from Hajjatul wida, his farewell pilgrimage to Mecca in Ghadeer Khum.), and all along his lifetime, there are three examples of the mentioned texts which have already been explained in the answer of our second…