Question of time

Meaning: Something that is certain to happen eventually, even if the exact time is unknown.

Example: It’s only a question of time before the truth becomes known.