Surah Al-Hashr

59:4

ذَٰلِكَ بِأَنَّهُمْ شَآقُّوا۟ ٱللَّهَ وَرَسُولَهُۥ ۖ وَمَن يُشَآقِّ ٱللَّهَ فَإِنَّ ٱللَّهَ شَدِيدُ ٱلْعِقَابِ

That is because they opposed Allah and His Messenger. And whoever opposes Allah - then indeed, Allah is severe in penalty.

Tafsir 59:4

Whatever happened to them happened because they took Allah and His Messenger as enemies through their disbelief and breaking of the treaties. And whoever takes Allah as his enemy, Allah is severe in punishment, so he will soon suffer His sever punishment.