Is masturbation halal or haram?

Alan maati asked 2 months ago

Al salamou alaykom . I saw many fatwas saying that masturbation is halal so i did it and i also saw others saying that it is haram . Please help me. Is it halal or haram and if it is haram , have i commited a sin . Because i thought it was halal and i masturbaited ?