[Like the custom of the people of Pharaoh] meaning: like the action of. Al-Hasan said: It contains an implication: they acted like the action of the people of Pharaoh, [and those before them] from among the disbelievers, [so Allah seized them for their sins].
Surah al-Anfal from verse (53) to verse (59).