The word 'never' is used to indicate that something has not happened at any time. It is placed between the auxiliary verb and the past participle.
Answer: I have never done such a stupid thing before.