sheikh i used to do a lot of sins like gambling and i used to watch porn and masturbate as well. I really tried to stop masturbating but i couldn’t stop it.. Last week i masturbated twice and after that immediately i felt sick.Next day got an infection UTI. While i was worried and depressed about the UTI. After few days i found out that i no longer can erect my penis and it became weak. I prayed to ALLAH and still praying. Alhamdulilah i returned to Allah after all the sins i made previously. Sheikh my question is this a test or punishment from Allah. What should i do to seek forgiveness from Allah.