It depends on the albedo of the planets (how much light it reflects). For example, Mercury has an albedo of 0.06, which means it reflects only 6% of the light that hits it, whereas Venus has an albedo of 0.75. This explains why you can easily see Venus at night, but not Mercury.