this basis, the prohibition (1) against this amounts to a command (2) to do what dispels it, even if it is not a sin—just as a person is commanded to repel his enemy and remove impurity and other things that harm him, even when they have not arisen through any sin of his.
Grief harms the heart, so he was commanded to do what dispels it, just as one is commanded to do what removes impurity. This grief (3) arose only from obedience: love for the Messenger and sincere concern for him. It was not a sin (4) for which he deserved blame. Rather, it arose because of obedience, owing to a weakness of heart for which a person is not blamed (5). He was commanded to acquire the strength to ward it off so that he would be rewarded for doing so.
Fourthly, it may be said: Even supposing that grief had been a sin, he experienced it before he was forbidden it; once he was forbidden it, he no longer did so. There is no sin in what was done before it was prohibited. Thus, before wine was prohibited, they used to drink it and gamble; when they were forbidden to do so, they desisted and then repented, as explained earlier.
Abū Muhammad ibn Hazm (6) said: “As for the grief of Abū Bakr—may Allah be pleased with him—before the Messenger of Allah—may Allah bless him and grant him peace—forbade him to grieve (7), it was most pleasing to Allah, for (8) it was concern for the Messenger of Allah—may Allah bless him and grant him peace. For that reason (9), Allah was with him. Allah is never with the disobedient (10), but rather against them; and Abū Bakr never grieved after