salam i just want to ask when i my wife was away from e i used to lot porn frequently and masturbaate, i have given up this sinful act for about a year now but i just want to know did my previous action invalidate my marraige
All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
Indeed, you did well by giving up those forbidden and abominable acts but you are obligated to sincerely repent to Allaah; the mere abandonment of those acts is not considered as repentance unless you fulfill the other conditions of repentance. For more benefit on the conditions of sincere repentance, please refer to Fataawa 86527 and 87903.
However, these evil deeds that you had committed do not affect your marital bond with your wife; rather, the marital bond between you and her is still existing.
Besides, you should avoid such acts of disobedience in the future, and be keen on taking your wife to live with you where you reside so that you keep yourself and you wife chaste. For more benefit, please refer to Fataawa 81150, 82737 and 84073.
Allaah Knows best.
You can search for fatwa through many choices