Everyone entering the masjid to join the congregation prayer, should on entering the masjid  make niyyah (intension) for I`tikaf. In that case, as long as he remains busy with salah, zikr, listening to lectures or sermons, he also receives reward for I`tikaf.