Surah Al-Anfal 8:47
وَلَا تَكُونُوا۟ كَٱلَّذِينَ خَرَجُوا۟ مِن دِيَـٰرِهِم بَطَرًا وَرِئَآءَ ٱلنَّاسِ وَيَصُدُّونَ عَن سَبِيلِ ٱللَّهِ ۚ وَٱللَّهُ بِمَا يَعْمَلُونَ مُحِيطٌ
And do not be like those who came forth from their homes insolently and to be seen by people and avert [them] from the way of Allāh. And Allāh is encompassing of what they do.
Translation: Saheeh International
Tafsir
And do not be like those who went forth from their dwellings to defend their caravan and but did not return after it had passed safely in recklessness and to show off to men — when they said ‘We will not return until we have drunk wine sacrificed the camels and have been entertained by singers at Badr and until people …
Excerpt from Tafsir al-Jalalayn, commentary on 8:47, via Quran.com. The reader has the full commentary and 9 more tafsirs.