Shaykh al-Islam Ibn Taymiyah (may Allaah have mercy on him) said: No one has the right to pride himself before Allaah on the righteousness of his forebears, for their righteousness is not part of his deeds for which he may deserve reward, as in the case of the three people in the cave. They did not beseech Allaah by the righteousness of their forebears, rather they beseeched Allaah by virtue of their own righteous deeds.