Ibraaheem and Muhammad ﷺ are both intimate friends of Allah - the Mighty and Sublime. Allah - the Exalted - says:
“And Allah did take Ibraaheem as an intimate friend!” (An-Nisa: 125)
The Prophet (ﷺ) said, “Certainly, Allah has chosen me as an intimate friend as He chose Ibraaheem as an intimate friend.”(1) The meaning of Khaleel is the one whose love has reached the apex. We do not know of anyone qualified with this attribute except Muhammad and Ibraaheem عليه السلام; they are the two intimate friends of Allah.
Sometimes, you hear some people saying Ibraaheem – alayhi as-salaam – is the intimate friend of Allah – the Exalted –, Muhammad (ﷺ) is a beloved of Allah – the Exalted –, and Moosa – alayhi as-salaam – was the one He conversed with.
The expression that, “Muhammad is a beloved of Allah” is contentious. This is because being an intimate friend is stronger than being a beloved. Hence, that he says, “Muhammad is a beloved of Allah” entails a level of deficiency in the right of the Messenger (ﷺ). The beloved of Allah are many: the believers, the good doers, and those who are just; Allah loves them all. Therefore, the beloved ones of Allah are numerous.
As for intimate friendship, we do not know that it is established for anybody except Muhammad and Ibraaheem عليه السلام. Based on this, we say that the correct thing is to say, “Ibraaheem is an intimate friend of Allah, Muhammad is an intimate friend of Allah and Musa is the one with whom Allah conversed” عليهم السلام.
Additionally, Allah – free is He from all imperfections and Exalted is He – did converse with Muhammad (ﷺ) without an intermediary during his Ascension to the heavens.
Ibraaheem uttered this statement: “Allah (Alone) is Sufficient for us, and He is the Best Disposer of affairs” when he was thrown into fire. That was because Ibraaheem (عليه السلام) called his people to the worship of Allah alone without associating a partner with Him. But they refused, and remained unnecessarily obstinate upon disbelief and joining partners with Allah.
One day, he smashed their idols into rubbles leaving the biggest among them. When they returned, they found their idols broken. So they sought to revenge for them – and the refuge is with Allah. They
wondered what they'll do to Ibraaheem. "They said, 'Burn him'" to support of their idols "...and assist your gods- if you are to act."
Consequently, they kindled a huge fire and then threw Ibraaheem into it! It was said that the intensity of the heat from the fire would not allow them move near it. So they flung Ibraaheem into it with a ballista.
When they hurled him he said, "Hasbunallahu wani'ma al-Wakeel (Allah (Alone) is Sufficient for us, and He is the Best Disposer of affairs)": And what followed after that? Allah - the Exalted - says,
"We (Allah) said: 'O fire! Be you coolness and safety for Ibraaheem.'" (Al-Anbiyaa: 69)
Coolness is the opposite of hotness, and safety refers to the opposite of destruction. This is because the fire is hot, scorching, and destructive but Allah commanded this fire to be cool and safe, and so, it became cool and safe. Some of the exegetes of the Qur'aan relate from the Children of Israel that when Allah said,
"O fire! Be you coolness and safety for Ibraaheem (Abraham)" (Al-Anbiyaa: 69), all the fires on earth became cool.
This is not correct because Allah directed the command to a particular fire, "O fire be you coolness". The scholars of Arabic grammar say that such syntax (as it occurs in Arabic) is regarded as a specified indefinite noun implying that it does not include all categories of fire. It is restricted to that into which Ibraaheem was thrown. This is the correct (explanation), and the remaining fires on earth remained as they were.
Likewise, the scholars stated that when Allah said, "Be you coolness" He mentioned "and a safety" along with it. This is because if He had only mentioned "coolness", it could have been harmfully cold leading to his death: everything complies with the command of Allah, the Mighty and Sublime.
Consider His saying – the Exalted - :
"Then He rose over (Istawa) towards the heavens when it
was smoke, and said to it and to the earth: “come both of you willingly or unwillingly.”
What did they both say?
“They both said: “We come willingly.” (Fussilat: 11)
Out of submission to the command of Allah - the Mighty and Sublime.
The second intimate friend of Allah who said, “Hasbunallahu wa ni'ma al-Wakeel (Allah alone is sufficient for us, and He is the Best Disposer of affairs)” was the Prophet (ﷺ). While returning from the Battle of Uhud along with his Companions – may Allah be pleased with them - it was said to them that, “People have gathered against you; they plan to invade Madeenah and exterminate you.” Yet, they said, “Hasbunallahu wa ni'ma al-Wakeel (Allah (alone) is sufficient for us, and He is the Best Disposer of affairs).”
Allah – the Exalted - says:
“So they returned with Grace and Bounty from Allah. No harm touched them; and they followed the good Pleasure of Allah. and Allah is Owner of Great Bounty.” (Al-Imraan: 174)
So it is necessary for everyone who sees people gathered against him or in transgression against him to say “Hasbunallahu wa ni'ma al-Wakeel (Allah is sufficient for us, and He is the Best Disposer of affairs).” Allah will suffice him from their evil as He sufficed Ibraaheem and Muhammad ﷺ.
Therefore, this statement should be in your mind at all times; whenever you observe hostility from people towards you, say: “Hasbunallahu wa ni'ma al-Wakeel (Allah is sufficient for us, and He is the Best Disposer of affairs).”
Allah alone grants success.