Both seem fine with me. However, no preposition is usually used between a verb and an in direct object : I gave Annie a doll. Your sentence has a relative clause, which makes a difference.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.