Al-Anfaal • EN-TAFSIR-IBN-ABBAS
﴿ وَلَا تَكُونُوا۟ كَٱلَّذِينَ خَرَجُوا۟ مِن دِيَٰرِهِم بَطَرًۭا وَرِئَآءَ ٱلنَّاسِ وَيَصُدُّونَ عَن سَبِيلِ ٱللَّهِ ۚ وَٱللَّهُ بِمَا يَعْمَلُونَ مُحِيطٌۭ ﴾
“And be not like those [unbelievers] who went forth from their homelands full of self-conceit and a desire to be seen and praised by men for they were trying to turn others away from the path of God -the while God encompassed all their doings [with His might].”
(Be not) in transgression (as those who came forth from their dwellings) i.e. Mecca (boastfully) impertinently (and to be seen of men) to gain reputation among men, (and debar (men) from the way of Allah) from Allah's Religion and obedience, (while Allah is surrounding all they do) regarding marching against the Prophet (pbuh) and the matter of war.