Sir Thomas Stamford Raffles founded Raffles Institution on 5 June 1823 , making it the school with the longest history in Singapore . Founded by Sir Thomas Stamford Raffles in June 1823 , Raffles Institution is the oldest school in Singapore .