His saying: "And We had certainly tried before them," meaning: We tested before them "the people of Pharaoh" with the religion, just as in His saying: "And indeed, We were testers," meaning: testers with the religion.