وَمَا كَانَ صَلَاتُهُمْ عِندَ ٱلْبَيْتِ إِلَّا مُكَآءًۭ وَتَصْدِيَةًۭ ۚ فَذُوقُوا۟ ٱلْعَذَابَ بِمَا كُنتُمْ تَكْفُرُونَ
“And why should Allah not Punish them while they hinder pilgrims from the Sacred Mosque, claiming to be its rightful guardians? None has the right to guardianship except those mindful [of Allah] — but most pagans do not know. Their prayer at the Sacred House was nothing but whistling and clapping. So taste the Punishment for your disbelief.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.