Both are authentic. The second hadeeth states that it is most likely in the last 7 nights but doesn’t limit it to these nights as it can be in the other three as well.

Read more