Yes, as I said, very convenient by Muhammad.
“The thief and plunderer aren’t among us” (But also go and attack those caravans and take their stuff)
Consider me skeptical.
This is the "dispute" between us I feel.
It was anything but convenient by Muhammad. As I said earlier after 13 years of persecution, where there was physical violence against Muhammad, Muslims were being tortured and killed. Muhammad finally fled to Medina with his companions.
This was not acceptable to the Quraysh. They sent letters, which I'm sure you can find, telling the folk in Medina to either kill Muhammad or give him back to them or get ready for war. One letter says we will kill your men and children and take your women.
Another time they threatened a companion who was in Mecca. Specifically Abu Jahl told Saad that he would have killed him if he wasn't under the protection of Abu sufyan.
The Meccans confiscated the property of the Muslims and were sending some of it to Syria to get funding for the war against the Muslims.
The caravans the muslims were allowed to raid were these caravans.
Edit: Just to add there are two kinds of wars in Islam. Both having different rulings. One is a war between two sets of people and one is a war of occupation.
In simple terms if me and you went to war the the rules, for Muslims are no attacking the elderly, women and children etc. Can't even chop down trees and poison the water etc.
However if you occupied my house by force then the rules are different. Anything goes, kind of