Abu Al-‘Āliyah reports that a man once asked ‘Ubay b. Ka’b – Allah be pleased with him – for advice. He said:
Take the Book of Allah as your leader (imām) and be pleased with it as a judge and ruler. It is what your Messenger left amongst you. It will be an intercessor for you. It is to be obeyed. It is a witness never doubted. In it is a mention of you and those before you, and judgment for whatever happens amongst you. And in it is news about you and whatever will come after you.
Al-Dhahabī in Siyar A’lām Al-Nubalā’, in the biography of ‘Ubay b. Ka’b