In the 1946 elections, the mullahs aligned with the Congress party in the NWFP, and Congress gained an absolute majority. However, just one year later in 1947, over 99% of KP's population voted to join Pakistan in a referendum, despite the majority mullahs' alignment with Congress and their call for a boycott (though turnout remained low). The influence of mullahs was not as significant as it is often portrayed. Religion was not the primary factor behind the voting patterns at that time. If you want more details about the KP political dynamics during that time, read Cunningham. He observed an interesting phenomenon where, besides factors such as Taburwali, even a single sheep slaughter could influence around ten votes. The alleged role of mullahs in persuading KP to join Pakistan is an exaggeration and a later-day fabrication.