Although there are times when a sentence ending with a preposition is weakened and requires rephrasing, there are many instances in which it works just fine. Where did the edict "Never end a sentence with a preposition" come from? Here's a short but
interesting article about a failed attempt during the 1600s to establish an academy that would have formalized and codified English.