Basic Vastu principle comes from ancient Indian/Hindu scripture but there is no religion involved in Vastu. It's a science which essentially gives instructions about building, city, office etc. architecture in accordance with the laws of nature. These laws state that the balance of the five elements must be maintained in order for beneficial energy to enhance your environment.
It comes form the ancient Indian tradition like Yoga, meditation or Ayurveda.