If it's been sitting still, (stagnant), then it needs to be rinsed, then soaked in a solution with bleach and then rinsed again thoroughly, imo. You could have anaerobic lifeforms and sulfur there. (I recommend rinsing before adding bleach because I don't know what bleach and sulfur do together.)
If it was at the bottom of an otherwise empty (fish-less) tank with pumps running, it's good to use right now.