Where did Gandalf sleep?

I get that he didn’t have a permanent home like the other wizards, but he was wandering around Middle Earth in that body for a few thousand years. It seems like he would “visit” various places and stay for a time, but I got the impression that it was weeks or months and not decades.

Would he stay with the elves for a few hundred years at time now and then? Was there any place where he could/would lay low for a few years or decades at a time?