All of this is plainly false on his part. Nothing in the verse indicates any of it, for two reasons:
First: prohibiting an act (1) does not indicate that it has occurred. Rather, it indicates that the act is forbidden so that it will not occur thereafter. For example, Allah Most High says:
“O Prophet, fear Allah and do not obey the disbelievers and the hypocrites.” [Surah al-Ahzāb: 1]
This does not indicate that he had been obeying them. Likewise, He says:
“Do not invoke another god alongside Allah.” [Surah al-Qasas: 88]
(2 or “Do not set up another god alongside Allah.” 2) (2) [Surah al-Isrā’: 22]
He—may Allah bless him and grant him peace—never associated partners with Allah, especially after receiving prophethood. The Muslim community unanimously agrees that he was protected from associating partners with Allah after receiving prophethood, yet he was forbidden to do so after receiving it. There are many similar examples. Thus, his words, “Do not grieve,” do not indicate that al-Siddīq had (3) already grieved. It is, however, rationally possible that he might grieve, so he could be told not to do so in order to prevent it.
Second: even supposing that he had been distressed for the Prophet—may Allah bless him and grant him peace—fearing that he might be killed and Islam would perish (4), and that he wished to sacrifice himself for the Prophet—may Allah bless him and grant him peace. This is why, when he accompanied him on the migration journey, he would sometimes walk ahead of him and sometimes behind him. The Prophet—may Allah bless him and grant him peace—asked him about this, and he replied:
“When I think of those lying in wait, I walk ahead of you; when I think of pursuit, I walk behind you.”
Ahmad reported it