Sometimes, Binnur, all you can do is to expose for the brightest area and let everything else be on the darker side.
Often you can recover a little from the shaddows just by careful use of Curves adjustment, providing that doesn't also affect other areas, like the sky. And sometimes, using an adjustment layer with a mask, you can selectively apply the variation.
But there will always be times, like this sort of skyline, where you just have to accept that there is a greater tonal range in a scene than can be easily edited.
But brightening the foreground, even if that has to gradually fade to a darker skyline is usually worth trying.
Once you get used to using layers and masks you will wonder how you managed without them.