Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "Allah Almighty has forgiven my Ummah its thoughts, as long as they do not speak of them or act upon them."
(b) Imam al-Shafi'i (may Allah have mercy on him) said: It reached us that the Messenger of Allah (peace and blessings be upon him) used to be just when dividing turns, and then he would say: 'Allahumma hadha qasmi fima amlik, wa anta a'lamu bima la amlik' (O Allah, this is my division in what I own, and You know best what is not in my control).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب القسم والنشوز / 14744