it’s only a matter/question of time - definition and synonyms

phrase mainly spoken
  1. used for saying that something will definitely happen, but you are not sure when

    It’s only a matter of time before someone gets seriously hurt.

See also main entry: time