Sure Al-Anfaal

8:47

وَلَا تَكُونُوا۟ كَٱلَّذِينَ خَرَجُوا۟ مِن دِيَٰرِهِم بَطَرًۭا وَرِئَآءَ ٱلنَّاسِ وَيَصُدُّونَ عَن سَبِيلِ ٱللَّهِ ۚ وَٱللَّهُ بِمَا يَعْمَلُونَ مُحِيطٌۭ

Und seid nicht wie diejenigen, die aus ihren Wohnstätten hinauszogen, in Übermut und aus Augendienerei vor den Menschen, und die von Allahs Weg abhalten. Allah umfaßt, was sie tun.

Tafsir 8:47

Do not be like those idolaters who left Makkah full of pride, showing off to people, and who prevent people from Allah’s religion and stop them from entering into it. Allah is All-Aware of what they do. No action of theirs is hidden from Him and He will repay them for that.