execute on passengers run tag @s add this

execute on passengers run ride @s dismount
execute at @a[tag=this] run particle end_rod ~ ~ ~ 0 0 0 0.1 10 force

tag @a[tag=this] remove this

tp @s ~ ~-1000 ~
kill @s