I moved into a new apartment and used a program to show me the direction of the Qibla. Then I used another program that directed me about 15-20 degrees north of the direction specified by the previous program. I started to pray in the new direction but then discovered that the original direction was correct based on another verification. I had confidence in the direction I was praying towards each time. Do I need to repeat my prayers?
You do not have to repeat the prayers if you were confident of the direction of the qibla by relying on the compass or any other rational means.