Pan-Malaysian Islamic Party
In the 2018 general election, Hasan lost to Eddin Syazlee Shith of Parti Pribumi Bersatu Malaysia (PPBM), in a three-corner fight with Rafiei Mustapha of Pan-Malaysian Islamic Party (PAS) for the Kuala Pilah parliamentary seat.