Expenses for nights on Agency work

I’m sure I’ve read somewhere in the HMRC website, concerning temporary expenses, that if you are not at one place for 3 months or more continually, it isn’t considered permanent, but don’t quote me on it. I’m sure someone will either confirm or thow my comment in the bin for me.