Forum:Ojamagic

If i activate hand destruction or card destruction and I discard ojamagic, do i get to retrieve the 3 ojamas first or is it after when hand or card finishes its effect