Surah Al-Anfal 8:5
كَمَآ أَخْرَجَكَ رَبُّكَ مِنۢ بَيْتِكَ بِٱلْحَقِّ وَإِنَّ فَرِيقًا مِّنَ ٱلْمُؤْمِنِينَ لَكَـٰرِهُونَ
[It is] just as when your Lord brought you out of your home [for the battle of Badr] in truth, while indeed, a party among the believers were unwilling,
Translation: Saheeh International
Tafsir
As your Lord brought you forth from your home with the truth bi’l-haqq is semantically connected to akhraja ‘He brought forth’ and indeed a party of the believers were averse to going forth the last sentence is a circumstantial qualifier referring to the suffixed pronoun kāf in akhrajaka ‘He brought you forth’; …
Excerpt from Tafsir al-Jalalayn, commentary on 8:5, via Quran.com. The reader has the full commentary and 9 more tafsirs.