Answered by Shaykh Yusuf Weltch
Question
Is one sinful for unintentional ejaculation and masturbation?
Answer
In the Name of Allah, the Most Merciful and Compassionate
You are not sinful for unintended ejaculation. Furthermore, if after realizing that your touching was causing arousal you immediately stopped, you are not sinful either.
The Messenger of Allah (may Allah bless him and give him peace) said, “All actions are based on their intentions. Each person will have what they intended…” [Bukhari]
Hope this helps
Allah knows best
[Shaykh] Yusuf Weltch
Checked and Approved by Shaykh Faraz Rabbani