Can I wait before selling a losing stock that turned non permissible

Assalaamu alaykum,