As the legend goes, the "never end a sentence with a preposition" rule was actually a revisionist prescription at some point in the (relatively recent) past. The goal was to make English more "elegant" and Latinate in its usage. This prescription actually flies in the face of English's origins. English did not derive from Latin, even though it borrows a lot of words and phrases from Latin. The rules of English grammar do not follow those of Latin, nor should they.