The past tense of restrain oneself from is restrained oneself from.
The third-person singular simple present indicative form of restrain oneself from is restrains oneself from.
The present participle of restrain oneself from is restraining oneself from.
The past participle of restrain oneself from is restrained oneself from.