Line one’s own pockets

To make money for oneself in a dishonest way.

The local politician was lining his own pockets and did not win another election.