In some cases like this you use might use "to infinitive", in other cases you might use "for", and in yet other cases you might use a different preposition. Sometimes there might be two or more options with more or less the same meaning, and sometimes the different choices might give different meanings. I don't think there are any "rules" that will magically tell you which is appropriate in any situation.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.