عن السدي ، قال : " الرَّقِيمِ ، حين رقمت أسماؤهم في الصخرة ، كتب الملك فيها أسماءهم ، وكتب أنهم هلكوا في زمان كذا وكذا في ملك ريبوس ، ثم ضربها في سور المدينة على الباب ، فكان من دخل أو خرج قرأها ، فذلك قوله : أَصْحَابَ الْكَهْفِ وَالرَّقِيمِ سورة الكهف آية 9 " .