An imam prays with people

If he sees it as if the imam is praying with the people while he is riding while they are riding, then if they are in war, they will provide the nail