All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad,
, is His slave and Messenger.
It appears –Allaah Knows best –that what you mentioned is not a lie. Rather, this is like the good optimism which the Prophet,
, loved, as confirmed in the authentic Sunnah. He,
, referred to it with the term 'good word'.
The scholars,
, said: “The good word is that which is said in regard to what the person aspires for and which makes him happy.” There is no doubt that this has good consequences on one's soul and mind, and this positively affects the person's conduct.
The verse which you mentioned in the question reflects this meaning, which is the positive effect on the soul, as this contributed to make the Muslim army firm and steadfast [as this led them to be victorious in the battle].