Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: I prayed two rak'ahs with the Prophet (peace and blessings be upon him), two rak'ahs with Sayyiduna Abu Bakr (may Allah be pleased with him), and two rak'ahs with Sayyiduna Umar (may Allah be pleased with him). Then your paths diverged.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10106