It is narrated from Hazrat Bilal (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) prayed two rak‘ahs inside the Ka‘bah.