It depends on which expansion the raid was released in, but for most raids that had 10 man & 25 man versions once you’ve done one you won’t be able to do the other until the next reset.
https://us.forums.blizzard.com/en/wow/t/can-i-clear-the-same-raid-twice-on-the-same-lockout/734804/3