In the English language, avoiding ending a sentence with a preposition is considered a grammatical convention. A preposition is a word or group of words that show the relationship between a noun or pronoun and another word in the sentence. Common examples of prepositions include words like “on,” “at,” “in,” “to,” and “with.”
Historically, ending a sentence with a preposition was considered to be incorrect or nonstandard grammar. However, in modern English usage, it is generally accepted that ending a sentence with a preposition is acceptable, especially in informal writing and speech.