"That is because they opposed Allah and His Messenger," meaning: they were enemies to Allah and His Messenger.
Tafsir of Surat al-Hashr from verse 5 to verse 6.