The present research was an empirical endeavor to explore the effect of green spaces on the traveler retention process and to establish a theory connecting such green spaces, psychological resilience, attitude, brand attachment, and retention in the hotel industry. A quantitative approach was employed to achieve study objectives. Our findings from the structural analysis indicated that green spaces as nature-based solution significantly influence psychological resilience. In addition, such relationship contributes to increasing positive attitude, strengthening brand-self connection and brand prominence, and building traveler retention. A salient role of attitude in determining retention was found. A further analysis (metric invariance) revealed that the linkage from green spaces to psychological resilience was moderated by hotel price reasonableness, and the association became stronger when guests feel that hotel price is reasonable. Overall, this research successfully verified the importance of a hotel’s green spaces and its role in guest psychological and affective responses and behaviors.