Competitions in instruments of war, such as camel and horse racing, archery and spear-fighting, are permissible for training and preparation for jihad-related tasks.
Allah the Almighty says:
«وَأَعِدُّوا لَهُم مَّا اسْتَطَعْتُم مِّن قُوَّةٍ وَمِن رِّبَاطِ الْخَيْلِ تُرْهِبُونَ بِهِ عَدُوَّ اللَّهِ وَعَدُوَّكُمْ وَآخَرِينَ مِن دُونِهِمْ لَا تَعْلَمُونَهُمُ اللَّهُ يَعْلَمُهُمْ ۚ وَمَا تُنفِقُوا مِن شَيْءٍ فِي سَبِيلِ اللَّهِ يُوَفَّ إِلَيْكُمْ وَأَنتُمْ لَا تُظْلَمُونَ»
“And prepare against them (to face them) whatever you are able of power and of tethered horses, by which you may frighten the enemy of Allah and your enemy and others besides them whom you do not know; Allah knows them. And whatever you spend in the way of Allah will be repaid to you in full, and you will not be wronged.”
And there is a hadith of the Prophet ﷺ:
“Competition with a prize is only in horse racing, camel racing and archery.”