Some Magisterial documents teaching that the Pope or the rulers of Christ’s Church (which definitely includes the Church’s highest authority, the Pope) are selected by God:
“They (priests) must preserve and strengthen a necessary oneness with their brothers in the ministry, especially with those whom God has selected as visible rulers of his Church.” (Decree – Presbyterorum Ordinis – On The Ministry And Life Of Priests # 15, n 3; Vatican II).
“But this authority (the Pope’s), even though it may be given to a man, and may be exercised by a man, is not human, but rather divine power, having been given by the divine mouth of Christ to Peter, and to him as well as to his successors, by Christ Himself, that is, to him whom He had disclosed to be the firm rock, just as the Lord said to Peter himself: “Whatever you shall bind,” [Matthew 16:19] etc. Therefore, whoever resists this authority, such as it has been ordain by God, resists the ordination of God. [Romans 13:2]” (Unam Sanctam).
Pope Francis Coat of Arm’s motto “Miserando atque eligendo” based on Matthew 9:9–13 clearly teaches that he was chosen by God. So this is something that the Church authoritatively believes.
John 3:27; John 15:5; Matthew 19:26