It has been tried but long ago.
The last member of the House of Lords to be PM was Lord Salisbury in 1900.
As noted Alec Douglas-Hume had to leave the House of Lords in 1963 and get elected as a MP.
The previous attempt would have been Lord Halifax in 1940 but by then it was clear the PM had to be from the Commons.