Please don’t be offended by this question. I'm just wondering about it and if you could answer this - it would be better. My question is "was the prophet Mohammad (peace be upon him) literally chosen by Allah (in fact that was) or only He (peace be upon him) attain this highest honour by his actions and characteristics, as Allah "azzawajal said many times in the Holy Quran about the prophet that (paraphrase) 'in this way He "azzawajal made him(the prophet) able to convey His message to the nation he sent to? I mean what was exactly the reasons behind choosing particularly this man (Prophet Mohammad peace be upon him) apart from the whole uncountable creation of Allah "azzawajal? Thanks in advance.
Allah could do anything so he could've technically chosen another person but how I see it is that Allah guides those who seek guidance.
Sahih al-Bukhari 7536:
The Prophet (ﷺ) said, "My Lord says, 'If My slave comes nearer to me for a span, I go nearer to him for a cubit; and if he comes nearer to Me for a cubit, I go nearer to him for the span of outstretched arms; and if he comes to Me walking, I go to him running.' "
Prophet Muhammad (SAW) before prophethood would meditate and contemplate life and the universe, seeking guidance and the truth.
We also know that all prophets before prophethood, lived just lives so there might be some requirements because if a dishonest or unjust person became a prophet then nobody would listen to him.
I believe he chooses the one who is qualified or most qualified to be a Prophet. Most people wouldn't be able to handle the hardships prophets deal with and would break down easily.
Based on the evidence of popular prophecy, Allah chose people from their own species as models, caliphs and guides to guide mankind. And this choice is not without reason. The talent for being prophet is placed in the institution of all human beings; But it does not reach the stage of actuality in all people; Rather, only a few people actualize the talent for being prophet with pure worship and do not commit sins .
[32:24]: We raised from among them leaders, guiding by Our command, when they patiently endured and firmly believed in Our signs.
Imam Sadiq says in the same context:
It is true that God Almighty chose human beings from the children of Adam and made their birth pure and their bodies pure and placed them behind men and women's wombs for His protection, not because of their debt to God, but because God knew at the time of creation that they obey Him and worship Him and do not do any kind of shirk [even secret shirk] towards Him. So, by obeying God, they have achieved this great honor and dignity in front of God.
Read more: [https://www.islamquest.net/fa/archive/fa1541]