The phrases "swear by" and "swear to" are both correct, but they have different meanings and uses. Here’s how they differ:
Swear by:
Meaning: To strongly believe in the effectiveness or reliability of something, often based on personal experience.
Usage: You use "swear by" when you're endorsing something or someone.
Example: "I swear by this brand of coffee; it’s the best I’ve ever had."
Swear to:
Meaning: To make a serious or solemn promise or statement, often invoking something or someone as a witness.
Usage: You use "swear to" when you’re making a promise or affirming something.
Example: "I swear to tell the truth, the whole truth, and nothing but the truth."
Summary:
Use "swear by" when you’re vouching for something’s effectiveness or reliability.
Use "swear to" when you’re making a serious promise or declaration.