Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: If you stay in a town for five months, shorten the prayer.