Section 24 of CPC grants power to transfer suits to both High Courts and District Courts. This is a general provision allowing either court to transfer cases for convenience or justice. Neither the Supreme Court nor only one specific court has this exclusive power.