Narrated Abu Hurairah: The Prophet ﷺ said: Striving in the path of Allah (jihad) is incumbent on you along with every ruler, whether he is pious or impious; the prayer is obligatory on you behind every believer, pious or impious, even if he commits grave sins; the (funeral) prayer is incumbent upon every Muslim, pious and impious, even if he commits major sins.
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
Both of these narrations are weak.
There are some points within them that are correct,
which are supported by other authentic narrations.
And there are some points that are not correct.
In any case, these two narrations are not a basis for argumentation.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 2533