Prepositional phrases consist of two elements: a preposition and its object. These parts are typically right next to each other. The only way to remember them is to practise. Take the quiz and practise.
If you want to be sure in using prepositions in prepositional phrases then take the quiz. Here you can practise the most frequently used ones.