Is it spoiled???

I pumped some milk about 4-5 hours ago and I accidentally left it out in a storage bottle sealed on my counter. Room temperature. Can I put it in the fridge and use it tomorrow? Or should I toss it? Smells fine. 
I know that breast milk can last in room temperature for 6-8 hours but I'm asking if it's bad to leave it out for so long and then refrigerate it after it's been sitting out.