Prime Minister Narendra Modi on Friday visited the Sri Venkateswara Swamy Temple at Tirumala in Andhra Pradesh to offer prayers, days after the passage of the delimitation and women's quota Bills in Parliament.